diff options
Diffstat (limited to 'tests/untried/pos/infer2-pos.scala')
-rw-r--r-- | tests/untried/pos/infer2-pos.scala | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/untried/pos/infer2-pos.scala b/tests/untried/pos/infer2-pos.scala new file mode 100644 index 000000000..2ce88be54 --- /dev/null +++ b/tests/untried/pos/infer2-pos.scala @@ -0,0 +1,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())) +} |