summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala
diff options
context:
space:
mode:
authorEugene Burmako <xeno.by@gmail.com>2013-08-10 15:02:50 +0200
committerEugene Burmako <xeno.by@gmail.com>2013-08-15 08:06:22 +0200
commit46f17f114bf261dc8757b5b876da50d53bb31172 (patch)
tree4a2d767bb190811d487a167e4115f9b4d9535138 /src/compiler/scala/tools/nsc/typechecker/RefChecks.scala
parent4ca45cb4c14595d491cc0cfc509fa88fb4dd5619 (diff)
downloadscala-46f17f114bf261dc8757b5b876da50d53bb31172.tar.gz
scala-46f17f114bf261dc8757b5b876da50d53bb31172.tar.bz2
scala-46f17f114bf261dc8757b5b876da50d53bb31172.zip
@compileTimeOnly now works for symbols from the empty package
Looks like we've got the entire language covered now.
Diffstat (limited to 'src/compiler/scala/tools/nsc/typechecker/RefChecks.scala')
-rw-r--r--src/compiler/scala/tools/nsc/typechecker/RefChecks.scala1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala b/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala
index 782a2880c2..04d03d47cc 100644
--- a/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala
+++ b/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala
@@ -1649,6 +1649,7 @@ abstract class RefChecks extends InfoTransform with scala.reflect.internal.trans
tree
case Ident(name) =>
+ checkCompileTimeOnly(tree.symbol, tree.pos)
transformCaseApply(tree,
if (name != nme.WILDCARD && name != tpnme.WILDCARD_STAR) {
assert(sym != NoSymbol, "transformCaseApply: name = " + name.debugString + " tree = " + tree + " / " + tree.getClass) //debug