From 72cf31c7acf46b1073d0c1e2ab6a87b55b7e92f5 Mon Sep 17 00:00:00 2001 From: Lukas Rytz Date: Mon, 11 Oct 2010 07:20:47 +0000 Subject: temporary fix for compiler crash in dependend m... temporary fix for compiler crash in dependend method types with annotations. review by moors. --- src/compiler/scala/tools/nsc/symtab/Types.scala | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/compiler/scala/tools/nsc/symtab/Types.scala b/src/compiler/scala/tools/nsc/symtab/Types.scala index d4f322ed9f..8f72bdcde6 100644 --- a/src/compiler/scala/tools/nsc/symtab/Types.scala +++ b/src/compiler/scala/tools/nsc/symtab/Types.scala @@ -3605,8 +3605,12 @@ A type's typeSymbol should never be inspected directly. override def transform(tree: Tree): Tree = { tree match { case RefParamAt(pid) => - if(actuals(pid) isStable) mkAttributedQualifier(actuals(pid), tree.symbol) - else { + // TODO: this should be simplified; in the stable case, one can probably + // just use an Ident to the tree.symbol. Why an existential in the non-stable case? + val actual = actuals(pid) + if(actual.isStable && actual.typeSymbol != NothingClass) { + mkAttributedQualifier(actuals(pid), tree.symbol) + } else { val sym = existSymFor(pid) (Ident(sym.name) copyAttrs tree -- cgit v1.2.3