diff options
author | Antonio Cunei <antonio.cunei@epfl.ch> | 2009-02-19 22:47:04 +0000 |
---|---|---|
committer | Antonio Cunei <antonio.cunei@epfl.ch> | 2009-02-19 22:47:04 +0000 |
commit | 275e9c737537f12a3488dfd64ee84e6e7fae6ffe (patch) | |
tree | 8d053c2e09a181a1adbb0fcedd9d488a479cecce /src | |
parent | 6ed49d8b851f8f0138db46157cd09f27b217ee1f (diff) | |
download | scala-275e9c737537f12a3488dfd64ee84e6e7fae6ffe.tar.gz scala-275e9c737537f12a3488dfd64ee84e6e7fae6ffe.tar.bz2 scala-275e9c737537f12a3488dfd64ee84e6e7fae6ffe.zip |
Fix and test for #1659
Diffstat (limited to 'src')
-rw-r--r-- | src/compiler/scala/tools/nsc/symtab/Types.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/scala/tools/nsc/symtab/Types.scala b/src/compiler/scala/tools/nsc/symtab/Types.scala index aa842ce9bb..f07454dc76 100644 --- a/src/compiler/scala/tools/nsc/symtab/Types.scala +++ b/src/compiler/scala/tools/nsc/symtab/Types.scala @@ -3483,10 +3483,10 @@ A type's typeSymbol should never be inspected directly. var e1 = s1.lookupEntry(sym2.name) (e1 ne null) && { val substSym = sym2.info.substThis(sym2.owner, e1.sym.owner.thisType) - var isEqual = e1.sym.info =:= substSym + var isEqual = false while (!isEqual && (e1 ne null)) { - e1 = s1.lookupNextEntry(e1) isEqual = e1.sym.info =:= substSym + e1 = s1.lookupNextEntry(e1) } isEqual } |