summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/typechecker/Typers.scala
diff options
context:
space:
mode:
authorEugene Burmako <xeno.by@gmail.com>2013-01-05 00:48:01 +0300
committerEugene Burmako <xeno.by@gmail.com>2013-01-09 08:10:48 +0100
commit3d397aa5e6381fa7514f3b5e160d170dad9d8f1c (patch)
treef6ff89d900a17ad9d1a0c2ba30aa0c4b03b3cf4a /src/compiler/scala/tools/nsc/typechecker/Typers.scala
parent055b07e4db30742e8282772d08f1c42811bab4fa (diff)
downloadscala-3d397aa5e6381fa7514f3b5e160d170dad9d8f1c.tar.gz
scala-3d397aa5e6381fa7514f3b5e160d170dad9d8f1c.tar.bz2
scala-3d397aa5e6381fa7514f3b5e160d170dad9d8f1c.zip
more precise errors for macros
Diffstat (limited to 'src/compiler/scala/tools/nsc/typechecker/Typers.scala')
-rw-r--r--src/compiler/scala/tools/nsc/typechecker/Typers.scala3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/Typers.scala b/src/compiler/scala/tools/nsc/typechecker/Typers.scala
index 95d7f9475d..f0bb425884 100644
--- a/src/compiler/scala/tools/nsc/typechecker/Typers.scala
+++ b/src/compiler/scala/tools/nsc/typechecker/Typers.scala
@@ -3226,7 +3226,8 @@ trait Typers extends Modes with Adaptations with Tags {
doTypedUnapply(tree, fun0, fun, args, mode, pt)
case _ =>
- duplErrorTree(ApplyWithoutArgsError(tree, fun))
+ if (treeInfo.isMacroApplication(tree)) duplErrorTree(MacroTooManyArgumentListsError(tree, fun.symbol))
+ else duplErrorTree(ApplyWithoutArgsError(tree, fun))
}
}