Skip to content

Fix #7644: silence debug warnings in REPL #8557

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 16, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion compiler/src/dotty/tools/dotc/core/SymDenotations.scala
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ trait SymDenotations { this: Context =>
/** Possibly accept stale symbol with warning if in IDE */
def acceptStale(denot: SingleDenotation): Boolean =
staleOK && {
ctx.echo(denot.staleSymbolMsg)
ctx.debugwarn(denot.staleSymbolMsg)
true
}
}
Expand Down
14 changes: 14 additions & 0 deletions compiler/test-resources/repl/i7644
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
scala> class T extends Eql
1 | class T extends Eql
| ^
| Cannot extend sealed trait Eql in a different source file
1 | class T extends Eql
| ^^^
| Missing type parameter for Eql
scala> class T extends Eql
1 | class T extends Eql
| ^
| Cannot extend sealed trait Eql in a different source file
1 | class T extends Eql
| ^^^
| Missing type parameter for Eql