diff options
author | Martin Odersky <odersky@gmail.com> | 2015-01-14 18:56:28 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2015-01-14 19:09:34 +0100 |
commit | c0b75098f66d4611683bc308d7f6127e6c6e433b (patch) | |
tree | e1a4d28167859e3556f84ff5786421675f2f208c /src/dotty/tools/dotc/core/TypeComparer.scala | |
parent | a24f73eb145d917863958551ff3f0a7c7db2a9dc (diff) | |
download | dotty-c0b75098f66d4611683bc308d7f6127e6c6e433b.tar.gz dotty-c0b75098f66d4611683bc308d7f6127e6c6e433b.tar.bz2 dotty-c0b75098f66d4611683bc308d7f6127e6c6e433b.zip |
Fixed bug/typo in comparing prefixes of ClassInfo types.
Diffstat (limited to 'src/dotty/tools/dotc/core/TypeComparer.scala')
-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 fbb2e1b7b..05edad59b 100644 --- a/src/dotty/tools/dotc/core/TypeComparer.scala +++ b/src/dotty/tools/dotc/core/TypeComparer.scala @@ -409,7 +409,7 @@ class TypeComparer(initctx: Context) extends DotClass with ConstraintHandling wi case ClassInfo(pre2, cls2, _, _, _) => def compareClassInfo = tp1 match { case ClassInfo(pre1, cls1, _, _, _) => - (cls1 eq cls2) && isSubType(pre2, pre1) + (cls1 eq cls2) && isSubType(pre1, pre2) case _ => false } |