aboutsummaryrefslogtreecommitdiff
path: root/tests/disabled/macro/run/macro-bundle-whitebox-use-raw/Test_2.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/disabled/macro/run/macro-bundle-whitebox-use-raw/Test_2.scala')
-rw-r--r--tests/disabled/macro/run/macro-bundle-whitebox-use-raw/Test_2.scala19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/disabled/macro/run/macro-bundle-whitebox-use-raw/Test_2.scala b/tests/disabled/macro/run/macro-bundle-whitebox-use-raw/Test_2.scala
new file mode 100644
index 000000000..b28ebfd71
--- /dev/null
+++ b/tests/disabled/macro/run/macro-bundle-whitebox-use-raw/Test_2.scala
@@ -0,0 +1,19 @@
+object Test extends dotty.runtime.LegacyApp {
+ println(ReturnTypeRefinement.foo.x)
+
+ case class Foo(i: Int, s: String, b: Boolean)
+ def foo[C, L](c: C)(implicit iso: FundepMaterialization[C, L]): L = iso.to(c)
+ locally {
+ val equiv = foo(Foo(23, "foo", true))
+ def typed[T](t: => T) {}
+ typed[(Int, String, Boolean)](equiv)
+ println(equiv)
+ }
+
+ println(implicitly[DynamicMaterialization[C1]])
+ println(implicitly[DynamicMaterialization[C2]])
+
+ 42 match {
+ case ExtractorMacro(x) => println(x)
+ }
+}