diff options
author | Eugene Burmako <xeno.by@gmail.com> | 2012-09-18 01:56:11 -0700 |
---|---|---|
committer | Eugene Burmako <xeno.by@gmail.com> | 2012-09-18 01:56:11 -0700 |
commit | 61480eb14a07c78a6746d2a6dc1e302d5baa112f (patch) | |
tree | 0e009682642f0267c6b3f6090fc8d7b54b9c3d1f /src | |
parent | 98289ed5bdfdce28cfab11812da24b4fffe4660d (diff) | |
parent | 3881ab3831bfbd5b2588b0612402b797516a5715 (diff) | |
download | scala-61480eb14a07c78a6746d2a6dc1e302d5baa112f.tar.gz scala-61480eb14a07c78a6746d2a6dc1e302d5baa112f.tar.bz2 scala-61480eb14a07c78a6746d2a6dc1e302d5baa112f.zip |
Merge pull request #1329 from scalamacros/ticket/5692
SI-5692 better error message
Diffstat (limited to 'src')
-rw-r--r-- | src/compiler/scala/tools/nsc/symtab/classfile/Pickler.scala | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/symtab/classfile/Pickler.scala b/src/compiler/scala/tools/nsc/symtab/classfile/Pickler.scala index b30969d451..29b238c4cb 100644 --- a/src/compiler/scala/tools/nsc/symtab/classfile/Pickler.scala +++ b/src/compiler/scala/tools/nsc/symtab/classfile/Pickler.scala @@ -69,7 +69,11 @@ abstract class Pickler extends SubComponent { } if (!t.isDef && t.hasSymbol && t.symbol.isTermMacro) { - unit.error(t.pos, "macro has not been expanded") + 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" + }) return } } |