We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f71b5e7 commit 3b46af1Copy full SHA for 3b46af1
compiler/src/dotty/tools/dotc/core/SymDenotations.scala
@@ -2457,10 +2457,12 @@ object SymDenotations {
2457
2458
/** Possibly accept stale symbol with warning if in IDE */
2459
def acceptStale(denot: SingleDenotation)(using Context): Boolean =
2460
- staleOK && {
2461
- report.debugwarn(denot.staleSymbolMsg)
2462
- true
2463
- }
+ denot.symbol.sourceModule == defn.ScalaPredefModule
+ || staleOK
+ && {
+ report.debugwarn(denot.staleSymbolMsg)
2464
+ true
2465
+ }
2466
2467
// ---- Completion --------------------------------------------------------
2468
0 commit comments