From f8d488f098fa2942ebda656e158e5bd3c5a0c342 Mon Sep 17 00:00:00 2001 From: Burak Emir Date: Thu, 10 Apr 2008 22:09:02 +0000 Subject: fixes "no-symbol doesn't have owner" crash in e... fixes "no-symbol doesn't have owner" crash in eclipse build. --- src/compiler/scala/tools/nsc/matching/ParallelMatching.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) || -- cgit v1.2.3