summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/typechecker/ContextErrors.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2012-04-25 06:43:45 -0700
committerPaul Phillips <paulp@improving.org>2012-04-25 06:43:45 -0700
commitedc7071d3b284fcf82bd17c7a1cf83f23e32788f (patch)
tree848344b1cfca8015a125723960691b60732ba30e /src/compiler/scala/tools/nsc/typechecker/ContextErrors.scala
parentbf621aa912ec76ba5794280b88f62d0861aa530d (diff)
downloadscala-edc7071d3b284fcf82bd17c7a1cf83f23e32788f.tar.gz
scala-edc7071d3b284fcf82bd17c7a1cf83f23e32788f.tar.bz2
scala-edc7071d3b284fcf82bd17c7a1cf83f23e32788f.zip
Fix reifier crashing repl.
Very first time I tried "reify" in the repl and it crashed. I changed an assert to issue a proper error, as best I could figure out how. We probably need to do a lot more of this.
Diffstat (limited to 'src/compiler/scala/tools/nsc/typechecker/ContextErrors.scala')
-rw-r--r--src/compiler/scala/tools/nsc/typechecker/ContextErrors.scala5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/ContextErrors.scala b/src/compiler/scala/tools/nsc/typechecker/ContextErrors.scala
index c13be0e39d..2d1369b11d 100644
--- a/src/compiler/scala/tools/nsc/typechecker/ContextErrors.scala
+++ b/src/compiler/scala/tools/nsc/typechecker/ContextErrors.scala
@@ -343,6 +343,11 @@ trait ContextErrors {
issueNormalTypeError(tree, "macros cannot be eta-expanded")
setError(tree)
}
+
+ def MacroPartialApplicationError(tree: Tree) = {
+ issueNormalTypeError(tree, "macros cannot be partially applied")
+ setError(tree)
+ }
//typedReturn
def ReturnOutsideOfDefError(tree: Tree) = {