Skip to content

Commit

Permalink
fix scala#9276: check valdef is realizable at pickler
Browse files Browse the repository at this point in the history
  • Loading branch information
bishabosha committed Mar 22, 2021
1 parent 75f7cb3 commit b08821c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions compiler/src/dotty/tools/dotc/core/tasty/TreePickler.scala
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,11 @@ class TreePickler(pickler: TastyPickler) {
case _ if tpt.isType => pickleTpt(tpt)
}
pickleTreeUnlessEmpty(rhs)
mdef match
case _: ValDef if !sym.is(StableRealizable) =>
// deterministically set the StableRealizable flag before committing to TASTy.
CheckRealizable.realizability(sym.termRef)
case _ =>
pickleModifiers(sym, mdef)
}
for
Expand Down

0 comments on commit b08821c

Please sign in to comment.