diff options
author | Martin Odersky <odersky@gmail.com> | 2003-05-21 15:53:09 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2003-05-21 15:53:09 +0000 |
commit | 2cc25288dd36b43c66ee4448856851ede5e8d6b2 (patch) | |
tree | 2511e78517123c3db740fe7dba7886ac1be0d488 /test/pos | |
parent | 22d0a607cd8cc270f66657c2ad3b71d1ecb77698 (diff) | |
download | scala-2cc25288dd36b43c66ee4448856851ede5e8d6b2.tar.gz scala-2cc25288dd36b43c66ee4448856851ede5e8d6b2.tar.bz2 scala-2cc25288dd36b43c66ee4448856851ede5e8d6b2.zip |
*** empty log message ***
Diffstat (limited to 'test/pos')
-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 +} |