aboutsummaryrefslogblamecommitdiff
path: root/tests/new/infer2-pos.scala
blob: 2ce88be544b9bb292f5ceefb406162e8c598aead (plain) (tree)
1
2
3
4
5
6
7






                                                   
package test
class Lst[T]
case class cons[T](x: T, xs: Lst[T]) extends Lst[T]
case class nil[T]() extends Lst[T]
object test {
  Console.println(cons(1, nil()))
}