Skip to content

Commit ee4e2e0

Browse files
committed
Fix a long sleeper bug
When setting the denotation we did not change the checked period. This can lead to a situation where a denotation is set to NoDenotation, yet the checked period is something else. This means in effect the denotation will vanish at the checked period. This bug caused the junit test failure about "non-member exception" for sourceFile in DottyBackendInterface.
1 parent 48a1f08 commit ee4e2e0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/dotty/tools/dotc/core/Types.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1380,6 +1380,7 @@ object Types {
13801380

13811381
lastDenotation = denot
13821382
lastSymbol = denot.symbol
1383+
checkedPeriod = Nowhere
13831384
}
13841385

13851386
private[dotc] def withSym(sym: Symbol, signature: Signature)(implicit ctx: Context): ThisType =

0 commit comments

Comments
 (0)