summaryrefslogtreecommitdiff
path: root/test/pos/clsrefine.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2003-03-18 11:29:41 +0000
committerMartin Odersky <odersky@gmail.com>2003-03-18 11:29:41 +0000
commit3307717e4e7dc1faf45accd775e5947db3652cd7 (patch)
treec03b053315c0b62aeb32d1f1a01c638e306905ff /test/pos/clsrefine.scala
parent31b5dceeb144c7aa99aa153e4184cbb3b45110e0 (diff)
downloadscala-3307717e4e7dc1faf45accd775e5947db3652cd7.tar.gz
scala-3307717e4e7dc1faf45accd775e5947db3652cd7.tar.bz2
scala-3307717e4e7dc1faf45accd775e5947db3652cd7.zip
*** empty log message ***
Diffstat (limited to 'test/pos/clsrefine.scala')
-rw-r--r--test/pos/clsrefine.scala8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/pos/clsrefine.scala b/test/pos/clsrefine.scala
index cbef0968e0..12f5aa5246 100644
--- a/test/pos/clsrefine.scala
+++ b/test/pos/clsrefine.scala
@@ -16,16 +16,16 @@ trait B extends A {
}
module test {
- val b: B with { type Y = Int } = new B {
+ val b: B { type Y = Int } = new B {
type Y = Int;
val y1 = 1, y2 = 1;
}
- val a: A with { type X1 = Int, X2 = Int } = b;
- val a1 = new A with {
+ val a: A { type X1 = Int, X2 = Int } = b;
+ val a1 = new A {
type X1 = Int, X2 = String;
val x1 = 1, x2 = "hello"
}
- val b1 = new B with {
+ val b1 = new B {
type Y = Any;
val y1 = 1, y2 = "hello";
}