aboutsummaryrefslogtreecommitdiff
path: root/tests/untried/neg/t5689.check
diff options
context:
space:
mode:
Diffstat (limited to 'tests/untried/neg/t5689.check')
-rw-r--r--tests/untried/neg/t5689.check8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/untried/neg/t5689.check b/tests/untried/neg/t5689.check
new file mode 100644
index 000000000..7d4f7fb63
--- /dev/null
+++ b/tests/untried/neg/t5689.check
@@ -0,0 +1,8 @@
+t5689.scala:4: error: macro implementation has incompatible shape:
+ required: (c: scala.reflect.macros.blackbox.Context)(i: c.Expr[Double]): c.Expr[String]
+ or : (c: scala.reflect.macros.blackbox.Context)(i: c.Tree): c.Tree
+ found : (c: scala.reflect.macros.blackbox.Context)(i: c.Expr[Double]): c.Expr[Int]
+type mismatch for return type: c.Expr[Int] does not conform to c.Expr[String]
+ def returnsString(i: Double): String = macro returnsIntImpl
+ ^
+one error found