diff options
author | Martin Odersky <odersky@gmail.com> | 2017-03-12 11:11:08 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2017-03-14 12:05:29 +0100 |
commit | 41afff188c25866f92fc64cbf5da195bc85c8c9a (patch) | |
tree | f79e257822195cb34910ca0ca3b3886852eb1812 /compiler/src/dotty/tools/dotc/core | |
parent | 6ec9fa443679acbd1cbfa4775debbd2ba6420a41 (diff) | |
download | dotty-41afff188c25866f92fc64cbf5da195bc85c8c9a.tar.gz dotty-41afff188c25866f92fc64cbf5da195bc85c8c9a.tar.bz2 dotty-41afff188c25866f92fc64cbf5da195bc85c8c9a.zip |
Fix unpickling of param-dependent methods
Diffstat (limited to 'compiler/src/dotty/tools/dotc/core')
-rw-r--r-- | compiler/src/dotty/tools/dotc/core/tasty/TreeUnpickler.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/src/dotty/tools/dotc/core/tasty/TreeUnpickler.scala b/compiler/src/dotty/tools/dotc/core/tasty/TreeUnpickler.scala index 0c38b9ddf..a9ea49ad1 100644 --- a/compiler/src/dotty/tools/dotc/core/tasty/TreeUnpickler.scala +++ b/compiler/src/dotty/tools/dotc/core/tasty/TreeUnpickler.scala @@ -279,8 +279,8 @@ class TreeUnpickler(reader: TastyReader, tastyName: TastyName.Table, posUnpickle case METHODtype => val (names, paramReader) = readNamesSkipParams val result = MethodType(names.map(_.toTermName))( - mt => paramReader.readParamTypes[Type](end), // !!! - mt => registeringType(mt, readType())) + mt => registeringType(mt, paramReader.readParamTypes[Type](end)), + mt => readType()) goto(end) result case PARAMtype => |