diff options
Diffstat (limited to 'test/files/pos')
-rw-r--r-- | test/files/pos/liftcode_polymorphic.scala | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/files/pos/liftcode_polymorphic.scala b/test/files/pos/liftcode_polymorphic.scala new file mode 100644 index 0000000000..3d4b159c83 --- /dev/null +++ b/test/files/pos/liftcode_polymorphic.scala @@ -0,0 +1,11 @@ +object Append extends Application {
+
+ def append[A](l1: List[A], l2: List[A]):List[A] =
+ l1 match {
+ case Nil => l2
+ case x::xs => x :: append(xs, l2)
+ }
+
+ println(scala.reflect.Code.lift(append _).tree)
+}
+
|