Skip to content

Commit a6cba8d

Browse files
committed
Reinstantiate t920
Got deleted by accident. Version in run has object renamed to prevent case clashes on MacOS. Version that exhibits the clash is in pending/run.
1 parent 4254271 commit a6cba8d

File tree

2 files changed

+48
-0
lines changed

2 files changed

+48
-0
lines changed

tests/pending/run/t920.scala

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
object Test {
2+
trait A;
3+
trait Foo0 { def foo : A; }
4+
trait Baz extends Foo0;
5+
trait B extends A {
6+
def initialize = {
7+
trait Foo extends Test.Foo0 {
8+
def foo : B.this.type = B.this;
9+
}
10+
class baz extends Baz with Foo {
11+
override def toString = "baz"
12+
}
13+
Console.println(new baz);
14+
}
15+
}
16+
object b extends B;
17+
def main(args : Array[String]) : Unit = {
18+
b.initialize;
19+
}
20+
}
21+
22+
23+
24+

tests/run/t920.scala

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
object Test {
2+
trait A;
3+
trait Foo0 { def foo : A; }
4+
trait Baz extends Foo0;
5+
trait B extends A {
6+
def initialize = {
7+
trait Foo extends Test.Foo0 {
8+
def foo : B.this.type = B.this;
9+
}
10+
class baz extends Baz with Foo {
11+
override def toString = "baz"
12+
}
13+
Console.println(new baz);
14+
}
15+
}
16+
object bb extends B;
17+
def main(args : Array[String]) : Unit = {
18+
bb.initialize;
19+
}
20+
}
21+
22+
23+
24+

0 commit comments

Comments
 (0)