Skip to content

Commit 60c157d

Browse files
committed
Don't pickle Erased flags for methods
1 parent 0de0505 commit 60c157d

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

compiler/src/dotty/tools/dotc/core/tasty/TreePickler.scala

-1
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,6 @@ class TreePickler(pickler: TastyPickler) {
287287
var mods = EmptyFlags
288288
if tpe.isContextualMethod then mods |= Given
289289
else if tpe.isImplicitMethod then mods |= Implicit
290-
if tpe.hasErasedParams then mods |= Erased
291290
pickleMethodic(METHODtype, tpe, mods)
292291
case tpe: ParamRef =>
293292
assert(pickleParamRef(tpe), s"orphan parameter reference: $tpe")

compiler/src/dotty/tools/dotc/core/tasty/TreeUnpickler.scala

-1
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,6 @@ class TreeUnpickler(reader: TastyReader,
245245
while currentAddr != end do // avoid boxing the mods
246246
readByte() match
247247
case IMPLICIT => mods |= Implicit
248-
case ERASED => mods |= Erased
249248
case GIVEN => mods |= Given
250249
(names, mods)
251250

0 commit comments

Comments
 (0)