diff options
author | Martin Odersky <odersky@gmail.com> | 2013-12-08 16:00:05 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2013-12-08 16:00:05 +0100 |
commit | 41e7ff8e0a52ee40aae27b2fd5c69c0988cd4ae8 (patch) | |
tree | 66ab522c2a49fc8da498cf17fcfc93c15400d9d7 /src | |
parent | 2f7e4a64179c4abf246aceff39857a14c8c46f68 (diff) | |
download | dotty-41e7ff8e0a52ee40aae27b2fd5c69c0988cd4ae8.tar.gz dotty-41e7ff8e0a52ee40aae27b2fd5c69c0988cd4ae8.tar.bz2 dotty-41e7ff8e0a52ee40aae27b2fd5c69c0988cd4ae8.zip |
Fixing problem in TypeComparing.
Have to strip TypeVars so as to not enter them as bounds.
Diffstat (limited to 'src')
-rw-r--r-- | src/dotty/tools/dotc/core/TypeComparer.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/core/TypeComparer.scala b/src/dotty/tools/dotc/core/TypeComparer.scala index e0c84ab62..69244aa12 100644 --- a/src/dotty/tools/dotc/core/TypeComparer.scala +++ b/src/dotty/tools/dotc/core/TypeComparer.scala @@ -207,7 +207,7 @@ class TypeComparer(initctx: Context) extends DotClass { case tp2: PolyParam => tp2 == tp1 || isSubTypeWhenFrozen(tp1, bounds(tp2).lo) || { - if (constraint contains tp2) addConstraint(tp2, tp1.widen.dealias, fromBelow = true) + if (constraint contains tp2) addConstraint(tp2, tp1.widen.dealias.stripTypeVar, fromBelow = true) else secondTry(tp1, tp2) } case tp2: BoundType => |