diff options
Diffstat (limited to 'test/pos/infer.scala')
-rw-r--r-- | test/pos/infer.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/pos/infer.scala b/test/pos/infer.scala index 7ff49ff70f..adb586b73e 100644 --- a/test/pos/infer.scala +++ b/test/pos/infer.scala @@ -4,8 +4,8 @@ module test { } case class Cons[a, b <: a](x: a, xs: List[b]) extends List[a]; case object Nil extends List[All]; - def nil[a]: List[a] = Nil; + def nil[n]: List[n] = Nil; def cons[a](x: a, xs: List[a]): List[a] = null; val x: List[Int] = Nil.::(1); val y: List[Int] = nil.::(1); -}
\ No newline at end of file +} |