diff options
Diffstat (limited to 'test/files/neg/macro-bundle-wrongcontext-a.scala')
-rw-r--r-- | test/files/neg/macro-bundle-wrongcontext-a.scala | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/files/neg/macro-bundle-wrongcontext-a.scala b/test/files/neg/macro-bundle-wrongcontext-a.scala new file mode 100644 index 0000000000..ed566fd977 --- /dev/null +++ b/test/files/neg/macro-bundle-wrongcontext-a.scala @@ -0,0 +1,13 @@ +import scala.reflect.macros.whitebox._ +import scala.language.experimental.macros + +abstract class MyContext extends Context + +class Bundle(val c: MyContext) { + import c.universe._ + def impl = q"()" +} + +object Macros { + def foo: Any = macro Bundle.impl +}
\ No newline at end of file |