summaryrefslogtreecommitdiff
path: root/test/files/run/t5923c/Test_2.scala
diff options
context:
space:
mode:
authorAdriaan Moors <adriaan.moors@typesafe.com>2013-08-16 11:35:47 -0700
committerAdriaan Moors <adriaan.moors@typesafe.com>2013-08-16 11:35:47 -0700
commit1b9c8d042cdd83dc48d24300c347302bd27def8f (patch)
treea43788a9cf59ccd3947d906960d81d79e080f807 /test/files/run/t5923c/Test_2.scala
parent8b2963869f6a6416eae583d4b6f16cbcaf0ca5ac (diff)
parent21a8c6c7558a67b642b6827f716b1aba2244c97f (diff)
downloadscala-1b9c8d042cdd83dc48d24300c347302bd27def8f.tar.gz
scala-1b9c8d042cdd83dc48d24300c347302bd27def8f.tar.bz2
scala-1b9c8d042cdd83dc48d24300c347302bd27def8f.zip
Merge pull request #2821 from xeno-by/topic/fundep-materialization
SI-7470 implements fundep materialization
Diffstat (limited to 'test/files/run/t5923c/Test_2.scala')
-rw-r--r--test/files/run/t5923c/Test_2.scala12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/files/run/t5923c/Test_2.scala b/test/files/run/t5923c/Test_2.scala
new file mode 100644
index 0000000000..a00f4ed7db
--- /dev/null
+++ b/test/files/run/t5923c/Test_2.scala
@@ -0,0 +1,12 @@
+// see the comments for macroExpandApply.onDelayed for an explanation of what's tested here
+object Test extends App {
+ 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