diff options
Diffstat (limited to 'tests/disabled/macro/run/macro-impl-tparam-only-in-impl')
-rw-r--r-- | tests/disabled/macro/run/macro-impl-tparam-only-in-impl/Impls_1.scala | 5 | ||||
-rw-r--r-- | tests/disabled/macro/run/macro-impl-tparam-only-in-impl/Macros_Test_2.scala | 8 |
2 files changed, 13 insertions, 0 deletions
diff --git a/tests/disabled/macro/run/macro-impl-tparam-only-in-impl/Impls_1.scala b/tests/disabled/macro/run/macro-impl-tparam-only-in-impl/Impls_1.scala new file mode 100644 index 000000000..705defb18 --- /dev/null +++ b/tests/disabled/macro/run/macro-impl-tparam-only-in-impl/Impls_1.scala @@ -0,0 +1,5 @@ +import scala.reflect.macros.blackbox.Context + +object Impls { + def foo[U <: String](c: Context): c.Expr[Unit] = { import c.universe._; c.Expr[Unit](q"""println("hello world")""") } +} diff --git a/tests/disabled/macro/run/macro-impl-tparam-only-in-impl/Macros_Test_2.scala b/tests/disabled/macro/run/macro-impl-tparam-only-in-impl/Macros_Test_2.scala new file mode 100644 index 000000000..b626ce35e --- /dev/null +++ b/tests/disabled/macro/run/macro-impl-tparam-only-in-impl/Macros_Test_2.scala @@ -0,0 +1,8 @@ +object Macros { + def foo: Unit = macro Impls.foo[String] +} + +object Test extends dotty.runtime.LegacyApp { + import Macros._ + foo +}
\ No newline at end of file |