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

                                       
                           








                                                   
import scala.reflect.runtime.universe._

object Append extends App {

  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)
}