Skip to content

Commit e29195d

Browse files
committed
Template denotations should stay valid if their owner is valid
1 parent e9f4a07 commit e29195d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

compiler/src/dotty/tools/dotc/core/SymDenotations.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ trait SymDenotations { this: Context =>
6262
|| owner.isRefinementClass
6363
|| owner.is(Scala2x)
6464
|| (owner.unforcedDecls.lookupAll(denot.name) contains denot.symbol)
65-
|| denot.isSelfSym)
65+
|| denot.isSelfSym
66+
|| denot.isLocalDummy)
6667
} catch {
6768
case ex: StaleSymbol => false
6869
}

0 commit comments

Comments
 (0)