diff options
author | Eugene Burmako <xeno.by@gmail.com> | 2012-08-17 11:50:01 +0200 |
---|---|---|
committer | Eugene Burmako <xeno.by@gmail.com> | 2012-08-17 11:57:18 +0200 |
commit | ddf27a1e0e4b9eae521651704e74298c33c9af6c (patch) | |
tree | 4d1adea4ffa6cd520e71c6997c6a69264acf0291 /test/files/neg/macro-invalidsig-context-bounds.check | |
parent | 78f9ef3906c78413ff8835fdad3849bfe5516be2 (diff) | |
download | scala-ddf27a1e0e4b9eae521651704e74298c33c9af6c.tar.gz scala-ddf27a1e0e4b9eae521651704e74298c33c9af6c.tar.bz2 scala-ddf27a1e0e4b9eae521651704e74298c33c9af6c.zip |
more cleanup for typedMacroBody
Diffstat (limited to 'test/files/neg/macro-invalidsig-context-bounds.check')
-rw-r--r-- | test/files/neg/macro-invalidsig-context-bounds.check | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/test/files/neg/macro-invalidsig-context-bounds.check b/test/files/neg/macro-invalidsig-context-bounds.check index 6c9482e537..5d42ebc515 100644 --- a/test/files/neg/macro-invalidsig-context-bounds.check +++ b/test/files/neg/macro-invalidsig-context-bounds.check @@ -1,4 +1,7 @@ -Impls_1.scala:5: error: macro implementations cannot have implicit parameters other than AbsTypeTag evidences - def foo[U: c.AbsTypeTag: Numeric](c: Ctx) = { - ^ -one error found +Macros_Test_1.scala:2: error: macro implementation has wrong shape:
+ required: (c: scala.reflect.macros.Context): c.Expr[Any]
+ found : (c: scala.reflect.macros.Context)(implicit evidence$2: Numeric[U]): c.universe.Literal
+macro implementations cannot have implicit parameters other than AbsTypeTag evidences
+ def foo[U] = macro Impls.foo[U]
+ ^
+one error found
|