summaryrefslogtreecommitdiff
path: root/sources/scala/tools/nsc/typechecker/Namers.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2005-10-16 07:19:23 +0000
committerMartin Odersky <odersky@gmail.com>2005-10-16 07:19:23 +0000
commitb10fe9805e2e1c9543c6ce7df7779dbcb1d90a3f (patch)
tree16d8e6ac9db5019408bb5e97fb748c3c5f714da8 /sources/scala/tools/nsc/typechecker/Namers.scala
parentb8818bf2920c8cc32c17b8dfc20ee57823b2ec79 (diff)
downloadscala-b10fe9805e2e1c9543c6ce7df7779dbcb1d90a3f.tar.gz
scala-b10fe9805e2e1c9543c6ce7df7779dbcb1d90a3f.tar.bz2
scala-b10fe9805e2e1c9543c6ce7df7779dbcb1d90a3f.zip
*** empty log message ***
Diffstat (limited to 'sources/scala/tools/nsc/typechecker/Namers.scala')
-rwxr-xr-xsources/scala/tools/nsc/typechecker/Namers.scala3
1 files changed, 2 insertions, 1 deletions
diff --git a/sources/scala/tools/nsc/typechecker/Namers.scala b/sources/scala/tools/nsc/typechecker/Namers.scala
index 9f9243eb26..3b6f353714 100755
--- a/sources/scala/tools/nsc/typechecker/Namers.scala
+++ b/sources/scala/tools/nsc/typechecker/Namers.scala
@@ -271,7 +271,7 @@ trait Namers: Analyzer {
private def templateSig(templ: Template): Type = {
val clazz = context.owner;
- val parents = typer.parentTypes(templ) map (.tpe);
+ val parents = typer.parentTypes(templ) map (p => if (p.tpe.isError) AnyRefClass.tpe else p.tpe);
val decls = new Scope();
log("members of " + clazz + "=" + decls.hashCode());//debug
new Namer(context.make(templ, clazz, decls)).enterSyms(templ.body);
@@ -399,6 +399,7 @@ trait Namers: Analyzer {
checkSelectors(rest)
case Nil =>
}
+ checkSelectors(selectors);
ImportType(expr1)
}
} catch {