Skip to content

Commit a6f27df

Browse files
committed
Fix crash
1 parent 962fb94 commit a6f27df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/transform/init/Semantic.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ class Semantic {
475475
case tp @ ThisType(tref) =>
476476
if tref.symbol.is(Flags.Package) then Result(Hot, noErrors)
477477
else
478-
val value = resolveThis(tp.classSymbol.asClass, thisV, klass)
478+
val value = resolveThis(tref.classSymbol.asClass, thisV, klass)
479479
Result(value, noErrors)
480480

481481
case _: TermParamRef | _: RecThis =>

0 commit comments

Comments
 (0)