Skip to content

Commit

Permalink
Don't pickle Erased flags for methods
Browse files Browse the repository at this point in the history
  • Loading branch information
natsukagami committed Jan 24, 2023
1 parent 0b2c9e5 commit b810b00
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion compiler/src/dotty/tools/dotc/core/tasty/TreePickler.scala
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,6 @@ class TreePickler(pickler: TastyPickler) {
var mods = EmptyFlags
if tpe.isContextualMethod then mods |= Given
else if tpe.isImplicitMethod then mods |= Implicit
if tpe.hasErasedParams then mods |= Erased
pickleMethodic(METHODtype, tpe, mods)
case tpe: ParamRef =>
assert(pickleParamRef(tpe), s"orphan parameter reference: $tpe")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,6 @@ class TreeUnpickler(reader: TastyReader,
while currentAddr != end do // avoid boxing the mods
readByte() match
case IMPLICIT => mods |= Implicit
case ERASED => mods |= Erased
case GIVEN => mods |= Given
(names, mods)

Expand Down

0 comments on commit b810b00

Please sign in to comment.