aboutsummaryrefslogtreecommitdiff
path: root/compiler/src/dotty/tools/dotc/core/tasty
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2017-03-12 10:50:35 +0100
committerMartin Odersky <odersky@gmail.com>2017-03-14 12:05:29 +0100
commit6ec9fa443679acbd1cbfa4775debbd2ba6420a41 (patch)
tree28df82635c2941af57fd4f4d4a50f5323db6284c /compiler/src/dotty/tools/dotc/core/tasty
parent86bf552cd421288b00525eb1a264652ee32d742d (diff)
downloaddotty-6ec9fa443679acbd1cbfa4775debbd2ba6420a41.tar.gz
dotty-6ec9fa443679acbd1cbfa4775debbd2ba6420a41.tar.bz2
dotty-6ec9fa443679acbd1cbfa4775debbd2ba6420a41.zip
Drop mixed MethodType apply method
The dropped method takes direct parameter types but a result type expression. Since parameter types are now in general dependent as well, that method is mostly redundant.
Diffstat (limited to 'compiler/src/dotty/tools/dotc/core/tasty')
-rw-r--r--compiler/src/dotty/tools/dotc/core/tasty/TreeUnpickler.scala3
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/src/dotty/tools/dotc/core/tasty/TreeUnpickler.scala b/compiler/src/dotty/tools/dotc/core/tasty/TreeUnpickler.scala
index fdb8a97ae..0c38b9ddf 100644
--- a/compiler/src/dotty/tools/dotc/core/tasty/TreeUnpickler.scala
+++ b/compiler/src/dotty/tools/dotc/core/tasty/TreeUnpickler.scala
@@ -278,7 +278,8 @@ class TreeUnpickler(reader: TastyReader, tastyName: TastyName.Table, posUnpickle
result
case METHODtype =>
val (names, paramReader) = readNamesSkipParams
- val result = MethodType(names.map(_.toTermName), paramReader.readParamTypes[Type](end))(
+ val result = MethodType(names.map(_.toTermName))(
+ mt => paramReader.readParamTypes[Type](end), // !!!
mt => registeringType(mt, readType()))
goto(end)
result