diff options
Diffstat (limited to 'test/files/neg/macro-blackbox-structural/Impls_Macros_1.scala')
-rw-r--r-- | test/files/neg/macro-blackbox-structural/Impls_Macros_1.scala | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/files/neg/macro-blackbox-structural/Impls_Macros_1.scala b/test/files/neg/macro-blackbox-structural/Impls_Macros_1.scala new file mode 100644 index 0000000000..a86a26d2c0 --- /dev/null +++ b/test/files/neg/macro-blackbox-structural/Impls_Macros_1.scala @@ -0,0 +1,15 @@ +import scala.language.experimental.macros + +object Macros { + def impl(c: scala.reflect.macros.blackbox.Context) = { + import c.universe._ + q""" + trait Foo { + def x = 2 + } + new Foo {} + """ + } + + def foo: Any = macro impl +}
\ No newline at end of file |