diff options
Diffstat (limited to 'tests/disabled/macro/run/macro-whitebox-fundep-materialization/Test_2.scala')
-rw-r--r-- | tests/disabled/macro/run/macro-whitebox-fundep-materialization/Test_2.scala | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/disabled/macro/run/macro-whitebox-fundep-materialization/Test_2.scala b/tests/disabled/macro/run/macro-whitebox-fundep-materialization/Test_2.scala new file mode 100644 index 000000000..72183ba86 --- /dev/null +++ b/tests/disabled/macro/run/macro-whitebox-fundep-materialization/Test_2.scala @@ -0,0 +1,12 @@ +// see the comments for macroExpand.onDelayed for an explanation of what's tested here +object Test extends dotty.runtime.LegacyApp { + case class Foo(i: Int, s: String, b: Boolean) + def foo[C, L](c: C)(implicit iso: Iso[C, L]): L = iso.to(c) + + { + val equiv = foo(Foo(23, "foo", true)) + def typed[T](t: => T) {} + typed[(Int, String, Boolean)](equiv) + println(equiv) + } +}
\ No newline at end of file |