diff options
author | Paul Phillips <paulp@improving.org> | 2012-02-03 10:36:17 -0800 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2012-02-03 12:47:19 -0800 |
commit | 8c7005fc90008b6874431d318b482c2ad985181a (patch) | |
tree | abec4ca8192e8500df925325516ad6379c9e7b1f /src/compiler/scala/tools/nsc/typechecker/RefChecks.scala | |
parent | 4aa290f3ba9b1b4029304f4d19e90e68ab18d781 (diff) | |
download | scala-8c7005fc90008b6874431d318b482c2ad985181a.tar.gz scala-8c7005fc90008b6874431d318b482c2ad985181a.tar.bz2 scala-8c7005fc90008b6874431d318b482c2ad985181a.zip |
Eliminated ScalaObject.
"This too shall pass."
Diffstat (limited to 'src/compiler/scala/tools/nsc/typechecker/RefChecks.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/typechecker/RefChecks.scala | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala b/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala index 21c1b8aa11..04213cfda7 100644 --- a/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala +++ b/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala @@ -1482,7 +1482,10 @@ abstract class RefChecks extends InfoTransform with reflect.internal.transform.R if (settings.Xmigration28.value) checkMigration(sym, tree.pos) - if (currentClass != sym.owner && sym.hasLocalFlag) { + if (sym eq NoSymbol) { + unit.warning(tree.pos, "Select node has NoSymbol! " + tree + " / " + tree.tpe) + } + else if (currentClass != sym.owner && sym.hasLocalFlag) { var o = currentClass var hidden = false while (!hidden && o != sym.owner && o != sym.owner.moduleClass && !o.isPackage) { |