Skip to content

Commit

Permalink
Fix missing compilation info
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasstucki committed Nov 27, 2023
1 parent 9b8ab6e commit 50a8ca6
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions compiler/src/dotty/tools/dotc/core/tasty/TreeUnpickler.scala
Original file line number Diff line number Diff line change
Expand Up @@ -630,8 +630,11 @@ class TreeUnpickler(reader: TastyReader,
rootd.symbol
case _ =>
val completer = adjustIfModule(new Completer(subReader(start, end)))
if (isClass)
newClassSymbol(ctx.owner, name.asTypeName, flags, completer, privateWithin, coord)
if isClass then
val compilationUnitInfo = completer match
case completer: SymbolLoader => completer.compilationUnitInfo
case _ => null
newClassSymbol(ctx.owner, name.asTypeName, flags, completer, privateWithin, coord, compilationUnitInfo)
else
newSymbol(ctx.owner, name, flags, completer, privateWithin, coord)
}
Expand Down

0 comments on commit 50a8ca6

Please sign in to comment.