summaryrefslogtreecommitdiff
path: root/test/files/run/existentials.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/existentials.scala')
-rw-r--r--test/files/run/existentials.scala16
1 files changed, 8 insertions, 8 deletions
diff --git a/test/files/run/existentials.scala b/test/files/run/existentials.scala
index 471f8fe779..902ae31b5a 100644
--- a/test/files/run/existentials.scala
+++ b/test/files/run/existentials.scala
@@ -69,14 +69,6 @@ object Test extends Application {
case _ =>
}
- var ex: Counter[T] forSome { type T } = _
- ex = ci
- ex = cf
-
- var exW: Counter[_] = _
- ex = ci
- ex = cf
-
val ci = new Counter[Int] {
def newCounter = 0
def get(i: Int) = i
@@ -91,6 +83,14 @@ object Test extends Application {
def name = "Float"
}
+ var ex: Counter[T] forSome { type T } = _
+ ex = ci
+ ex = cf
+
+ var exW: Counter[_] = _
+ ex = ci
+ ex = cf
+
foo(ci)
foo(cf)
fooW(ci)