summaryrefslogtreecommitdiff
path: root/test/files/run/macro-expand-nullary-generic/Macros_Test_2.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/macro-expand-nullary-generic/Macros_Test_2.scala')
-rw-r--r--test/files/run/macro-expand-nullary-generic/Macros_Test_2.scala15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/files/run/macro-expand-nullary-generic/Macros_Test_2.scala b/test/files/run/macro-expand-nullary-generic/Macros_Test_2.scala
new file mode 100644
index 0000000000..2d5cf53c3c
--- /dev/null
+++ b/test/files/run/macro-expand-nullary-generic/Macros_Test_2.scala
@@ -0,0 +1,15 @@
+object Macros {
+ def foo1[T] = macro Impls.fooNullary[T]
+ def foo2[T]() = macro Impls.fooEmpty[T]
+ def bar1[T](x: Int) = macro Impls.barNullary[T]
+ def bar2[T](x: Int)() = macro Impls.barEmpty[T]
+}
+
+object Test extends App {
+ Macros.foo1[Int]
+ Macros.foo2[Int]
+ Macros.foo2[Int]()
+ Macros.bar1[Int](42)
+ Macros.bar2[Int](42)()
+ println("kkthxbai")
+} \ No newline at end of file