Skip to content

Commit 515a519

Browse files
committed
Fix unpickling of param-dependent methods
1 parent ff2f0c7 commit 515a519

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,8 +279,8 @@ class TreeUnpickler(reader: TastyReader, tastyName: TastyName.Table, posUnpickle
279279
case METHODtype =>
280280
val (names, paramReader) = readNamesSkipParams
281281
val result = MethodType(names.map(_.toTermName))(
282-
mt => paramReader.readParamTypes[Type](end), // !!!
283-
mt => registeringType(mt, readType()))
282+
mt => registeringType(mt, paramReader.readParamTypes[Type](end)),
283+
mt => readType())
284284
goto(end)
285285
result
286286
case PARAMtype =>

0 commit comments

Comments
 (0)