aboutsummaryrefslogtreecommitdiff
path: root/tests/untried/neg/macro-invalidusage-presuper
diff options
context:
space:
mode:
Diffstat (limited to 'tests/untried/neg/macro-invalidusage-presuper')
-rw-r--r--tests/untried/neg/macro-invalidusage-presuper/Impls_1.scala5
-rw-r--r--tests/untried/neg/macro-invalidusage-presuper/Macros_Test_2.scala3
2 files changed, 8 insertions, 0 deletions
diff --git a/tests/untried/neg/macro-invalidusage-presuper/Impls_1.scala b/tests/untried/neg/macro-invalidusage-presuper/Impls_1.scala
new file mode 100644
index 000000000..ea98f01fa
--- /dev/null
+++ b/tests/untried/neg/macro-invalidusage-presuper/Impls_1.scala
@@ -0,0 +1,5 @@
+import scala.reflect.macros.blackbox.Context
+
+object Impls {
+ def impl(c: Context) = { import c.universe._; c.Expr[Unit](q"()") }
+} \ No newline at end of file
diff --git a/tests/untried/neg/macro-invalidusage-presuper/Macros_Test_2.scala b/tests/untried/neg/macro-invalidusage-presuper/Macros_Test_2.scala
new file mode 100644
index 000000000..ff46a5915
--- /dev/null
+++ b/tests/untried/neg/macro-invalidusage-presuper/Macros_Test_2.scala
@@ -0,0 +1,3 @@
+import Impls._
+
+class D extends { def x = macro impl } with AnyRef \ No newline at end of file