summaryrefslogblamecommitdiff
path: root/test/files/run/macro-expand-nullary-nongeneric/Macros_Test_2.scala
blob: 1f6d717956b2f258e8bcc5e0a93d9777d2f41d4d (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15














                                           
object Macros {
  def foo1 = macro Impls.fooNullary
  def foo2() = macro Impls.fooEmpty
  def bar1(x: Int) = macro Impls.barNullary
  def bar2(x: Int)() = macro Impls.barEmpty
}

object Test extends App {
  Macros.foo1
  Macros.foo2
  Macros.foo2()
  Macros.bar1(42)
  Macros.bar2(42)()
  println("kkthxbai")
}