diff options
author | Martin Odersky <odersky@gmail.com> | 2007-08-22 13:33:08 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2007-08-22 13:33:08 +0000 |
commit | e69edec6c715240cf71f4a555232ea18cd21e19f (patch) | |
tree | dd98812685c05560ef8cb110b126500bb0ad1e90 | |
parent | 73a1346edb6ec17e4b9586a1a0d32367005fe258 (diff) | |
download | scala-e69edec6c715240cf71f4a555232ea18cd21e19f.tar.gz scala-e69edec6c715240cf71f4a555232ea18cd21e19f.tar.bz2 scala-e69edec6c715240cf71f4a555232ea18cd21e19f.zip |
fixed bug1243
-rw-r--r-- | src/compiler/scala/tools/nsc/typechecker/Namers.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/Namers.scala b/src/compiler/scala/tools/nsc/typechecker/Namers.scala index 52f1194e60..2e5ab49907 100644 --- a/src/compiler/scala/tools/nsc/typechecker/Namers.scala +++ b/src/compiler/scala/tools/nsc/typechecker/Namers.scala @@ -409,7 +409,7 @@ trait Namers { self: Analyzer => override def complete(sym: Symbol) { var selftpe = typer.typedType(tree).tpe if (!(selftpe.typeSymbol isNonBottomSubClass sym.owner)) - selftpe = intersectionType(List(selftpe, sym.owner.tpe)) + selftpe = intersectionType(List(sym.owner.tpe, selftpe)) // println("completing self of "+sym.owner+": "+selftpe) sym.setInfo(selftpe) } |