aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/core/pickling/UnPickler.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2013-11-28 18:33:48 +0100
committerMartin Odersky <odersky@gmail.com>2013-11-28 21:00:45 +0100
commit4dadbda073422eba3745866737f438aa772169df (patch)
treec43c3a5bdf33f7b573c9784510f252748a578098 /src/dotty/tools/dotc/core/pickling/UnPickler.scala
parenta9fe1a9cd4514406b54d03ef51740373429dfe05 (diff)
downloaddotty-4dadbda073422eba3745866737f438aa772169df.tar.gz
dotty-4dadbda073422eba3745866737f438aa772169df.tar.bz2
dotty-4dadbda073422eba3745866737f438aa772169df.zip
Refactorings in TypeComparers and elsewhere
Broke out common functionality in two new methods: widenExpr, and commonVariance.
Diffstat (limited to 'src/dotty/tools/dotc/core/pickling/UnPickler.scala')
-rw-r--r--src/dotty/tools/dotc/core/pickling/UnPickler.scala6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/dotty/tools/dotc/core/pickling/UnPickler.scala b/src/dotty/tools/dotc/core/pickling/UnPickler.scala
index 0f4e42987..21bdbcce9 100644
--- a/src/dotty/tools/dotc/core/pickling/UnPickler.scala
+++ b/src/dotty/tools/dotc/core/pickling/UnPickler.scala
@@ -668,11 +668,7 @@ class UnPickler(bytes: Array[Byte], classRoot: ClassDenotation, moduleClassRoot:
case POLYtpe =>
val restpe = readTypeRef()
val typeParams = until(end, readSymbolRef)
- def deExpr(tp: Type) = tp match {
- case ExprType(restpe) => restpe
- case tp => tp
- }
- if (typeParams.nonEmpty) TempPolyType(typeParams, deExpr(restpe))
+ if (typeParams.nonEmpty) TempPolyType(typeParams, restpe.widenExpr)
else ExprType(restpe)
case EXISTENTIALtpe =>
val restpe = readTypeRef()