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