summaryrefslogblamecommitdiff
path: root/test/files/pos/liftcode_polymorphic.scala
blob: 9c59b34bee537f9296f0d3ad6b0e69e12322c063 (plain) (tree)
1
2
3
4
5
6
7
8
9
10

                              







                                                    
                                

  
import scala.reflect.mirror._

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(reify(append _).tree)
}