summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2012-09-29 16:24:43 -0700
committerPaul Phillips <paulp@improving.org>2013-01-30 03:50:30 -0800
commitf3f1e5060efe45eb01040f8332506c8c1dd26cfc (patch)
tree9ec2849d793a9d9dd23c65dae4b0e1ebf0157d47 /src
parent77ec4ef5210c4f023a07c1d719806c4d7231cf09 (diff)
downloadscala-f3f1e5060efe45eb01040f8332506c8c1dd26cfc.tar.gz
scala-f3f1e5060efe45eb01040f8332506c8c1dd26cfc.tar.bz2
scala-f3f1e5060efe45eb01040f8332506c8c1dd26cfc.zip
SI-5353, imperfect error message.
[backport] The fix of course is a perfect error message.
Diffstat (limited to 'src')
-rw-r--r--src/compiler/scala/tools/nsc/symtab/classfile/Pickler.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/scala/tools/nsc/symtab/classfile/Pickler.scala b/src/compiler/scala/tools/nsc/symtab/classfile/Pickler.scala
index 25b7813646..e8b0cd2696 100644
--- a/src/compiler/scala/tools/nsc/symtab/classfile/Pickler.scala
+++ b/src/compiler/scala/tools/nsc/symtab/classfile/Pickler.scala
@@ -71,8 +71,8 @@ abstract class Pickler extends SubComponent {
if (!t.isDef && t.hasSymbol && t.symbol.isTermMacro) {
unit.error(t.pos, t.symbol.typeParams.length match {
case 0 => "macro has not been expanded"
- case 1 => "type parameter not specified"
- case _ => "type parameters not specified"
+ case 1 => "this type parameter must be specified"
+ case _ => "these type parameters must be specified"
})
return
}