summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBurak Emir <emir@epfl.ch>2008-04-10 22:09:02 +0000
committerBurak Emir <emir@epfl.ch>2008-04-10 22:09:02 +0000
commitf8d488f098fa2942ebda656e158e5bd3c5a0c342 (patch)
treec7326cfc911c05fee3c8fe4891e767cd286c6456
parent3fd2c50ffd5f73f5d1aaa6839005471538e03218 (diff)
downloadscala-f8d488f098fa2942ebda656e158e5bd3c5a0c342.tar.gz
scala-f8d488f098fa2942ebda656e158e5bd3c5a0c342.tar.bz2
scala-f8d488f098fa2942ebda656e158e5bd3c5a0c342.zip
fixes "no-symbol doesn't have owner" crash in e...
fixes "no-symbol doesn't have owner" crash in eclipse build.
-rw-r--r--src/compiler/scala/tools/nsc/matching/ParallelMatching.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/matching/ParallelMatching.scala b/src/compiler/scala/tools/nsc/matching/ParallelMatching.scala
index 44b5d7102a..7b8eeeb155 100644
--- a/src/compiler/scala/tools/nsc/matching/ParallelMatching.scala
+++ b/src/compiler/scala/tools/nsc/matching/ParallelMatching.scala
@@ -1222,7 +1222,7 @@ trait ParallelMatching {
val res =
isDefaultPattern(p) || p.isInstanceOf[UnApply] || p.isInstanceOf[ArrayValue] || {
val ptpe = patternType_wrtEquals(p.tpe)
- val symtpe = if (sym.hasFlag(symtab.Flags.MODULE)) {
+ val symtpe = if (sym.hasFlag(symtab.Flags.MODULE) && (sym.linkedModuleOfClass ne NoSymbol)) {
singleType(sym.tpe.prefix, sym.linkedModuleOfClass) // e.g. None, Nil
} else sym.tpe
(ptpe.typeSymbol == sym) || (symtpe <:< ptpe) ||