diff options
Diffstat (limited to 'test/pos')
-rw-r--r-- | test/pos/infer.scala | 2 | ||||
-rw-r--r-- | test/pos/infer2.scala | 2 | ||||
-rw-r--r-- | test/pos/patterns3.scala | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/test/pos/infer.scala b/test/pos/infer.scala index adb586b73e..24871458b3 100644 --- a/test/pos/infer.scala +++ b/test/pos/infer.scala @@ -1,4 +1,4 @@ -module test { +object test { class List[+a] { def ::[b >: a](x: b): List[b] = new Cons(x, this); } diff --git a/test/pos/infer2.scala b/test/pos/infer2.scala index 5e93446cdf..66f3d76544 100644 --- a/test/pos/infer2.scala +++ b/test/pos/infer2.scala @@ -1,4 +1,4 @@ -module test { +object test { def f[a, b <: a](x: b): a = x: a; def g[a >: b, b](x: b): a = x: a; diff --git a/test/pos/patterns3.scala b/test/pos/patterns3.scala index 6caa834852..001bd8989f 100644 --- a/test/pos/patterns3.scala +++ b/test/pos/patterns3.scala @@ -1,5 +1,5 @@ -module M { +object M { val Tuple2(Tuple2(x, y), _) = Tuple2(Tuple2(1, 2), 3); -}
\ No newline at end of file +} |