diff options
author | Eugene Vigdorchik <eugenevigdorchik@epfl.ch> | 2010-11-15 08:57:17 +0000 |
---|---|---|
committer | Eugene Vigdorchik <eugenevigdorchik@epfl.ch> | 2010-11-15 08:57:17 +0000 |
commit | bf939d9757b782439e0afdd7badcbac1ed7476b9 (patch) | |
tree | 42de7b3b3214fd7f1a3f3f8f01b5fc19de8c6460 /src | |
parent | 6900ffe884573fef394e2886e35361e2e1e951d5 (diff) | |
download | scala-bf939d9757b782439e0afdd7badcbac1ed7476b9.tar.gz scala-bf939d9757b782439e0afdd7badcbac1ed7476b9.tar.bz2 scala-bf939d9757b782439e0afdd7badcbac1ed7476b9.zip |
adapt not to confuse types and stable terms.
Diffstat (limited to 'src')
-rw-r--r-- | src/compiler/scala/tools/nsc/symtab/Types.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/symtab/Types.scala b/src/compiler/scala/tools/nsc/symtab/Types.scala index 6a91286c73..05156fcf20 100644 --- a/src/compiler/scala/tools/nsc/symtab/Types.scala +++ b/src/compiler/scala/tools/nsc/symtab/Types.scala @@ -3826,7 +3826,7 @@ A type's typeSymbol should never be inspected directly. ) ) } - val rebind = rebind0.suchThat(sym => sym.isType || sym.isStable) + val rebind = rebind0.suchThat(s => if (sym.isType) s.isType else s.isStable) if (rebind == NoSymbol) { if (settings.debug.value) log("" + phase + " " +phase.flatClasses+sym.owner+sym.name+" "+sym.isType) throw new MalformedType(pre, sym.nameString) |