Skip to content

Commit 1a70a69

Browse files
committed
Revert unncessessary change in SemanticDB
1 parent f3f3f23 commit 1a70a69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/semanticdb/ExtractSemanticDB.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ class ExtractSemanticDB extends Phase:
243243
for alt <- tree.expr.tpe.member(imported).alternatives do
244244
registerUseGuarded(None, alt.symbol, sel.imported.span, tree.source)
245245
try
246-
if (alt.symbol.companionClass.isDefinedInCurrentRun)
246+
if (alt.symbol.companionClass.exists)
247247
registerUseGuarded(None, alt.symbol.companionClass, sel.imported.span, tree.source)
248248
catch case ex: StaleSymbol =>
249249
// can happen for constructor proxies. Test case is pos-macros/i13532.

0 commit comments

Comments
 (0)