summaryrefslogtreecommitdiff
path: root/test/files/pos
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/pos')
-rw-r--r--test/files/pos/infer.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/files/pos/infer.scala b/test/files/pos/infer.scala
index 7ff49ff70f..adb586b73e 100644
--- a/test/files/pos/infer.scala
+++ b/test/files/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
+}