summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSean McDirmid <sean.mcdirmid@gmail.com>2008-08-31 02:50:50 +0000
committerSean McDirmid <sean.mcdirmid@gmail.com>2008-08-31 02:50:50 +0000
commitfc1e62681caebfbc721eb4efc9036654e04c091b (patch)
tree3083da2474890bc3c9b00f7372874160faa83139 /src
parent7fec2a08763b790950ce26b4198715d0a1b781d9 (diff)
downloadscala-fc1e62681caebfbc721eb4efc9036654e04c091b.tar.gz
scala-fc1e62681caebfbc721eb4efc9036654e04c091b.tar.bz2
scala-fc1e62681caebfbc721eb4efc9036654e04c091b.zip
Fix for #1204, demoting match error to error lo...
Fix for #1204, demoting match error to error log message.
Diffstat (limited to 'src')
-rw-r--r--src/compiler/scala/tools/nsc/symtab/IdeSupport.scala2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/compiler/scala/tools/nsc/symtab/IdeSupport.scala b/src/compiler/scala/tools/nsc/symtab/IdeSupport.scala
index 308137cc40..8000688cf3 100644
--- a/src/compiler/scala/tools/nsc/symtab/IdeSupport.scala
+++ b/src/compiler/scala/tools/nsc/symtab/IdeSupport.scala
@@ -161,6 +161,8 @@ trait IdeSupport extends SymbolTable { // added to global, not analyzers.
case Some(symbols) => symbols.foreach{sym =>
def f(sym : Symbol) = sym.owner.info.decls match {
case scope : PersistentScope => reuse(scope, (sym))
+ case scope =>
+ check(false, scope + " is not persistent")
}
if (sym.isModuleClass) {
if (check(sym.name.isTypeName,"") && sym.hasRawInfo)