File tree Expand file tree Collapse file tree 2 files changed +48
-0
lines changed Expand file tree Collapse file tree 2 files changed +48
-0
lines changed Original file line number Diff line number Diff line change
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
+
Original file line number Diff line number Diff line change
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
+
You can’t perform that action at this time.
0 commit comments