aboutsummaryrefslogtreecommitdiff
path: root/tests/disabled/macro/run/macro-expand-nullary-generic/Macros_Test_2.scala
blob: da418c63c6b9b0b96af172345c22b83352afba92 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
object Macros {
  def foo1[T]: Unit = macro Impls.fooNullary[T]
  def foo2[T](): Unit = macro Impls.fooEmpty[T]
  def bar1[T](x: Int): Unit = macro Impls.barNullary[T]
  def bar2[T](x: Int)(): Unit = macro Impls.barEmpty[T]
}

object Test extends dotty.runtime.LegacyApp {
  Macros.foo1[Int]
  Macros.foo2[Int]
  Macros.foo2[Int]()
  Macros.bar1[Int](42)
  Macros.bar2[Int](42)()
  println("kkthxbai")
}