diff options
Diffstat (limited to 'test/files/neg/t5753/Test_2.scala')
-rw-r--r-- | test/files/neg/t5753/Test_2.scala | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/files/neg/t5753/Test_2.scala b/test/files/neg/t5753/Test_2.scala new file mode 100644 index 0000000000..2369b18e76 --- /dev/null +++ b/test/files/neg/t5753/Test_2.scala @@ -0,0 +1,11 @@ +import scala.reflect.macros.{Context => Ctx} + +object Macros extends Impls { + def foo(x: Any) = macro impl +} + +object Test extends App { + import Macros._ + println(foo(42)) +} + |