|
1 | 1 | -- Error: tests/init/neg/secondary-ctor4.scala:54:14 -------------------------------------------------------------------
|
2 | 2 | 54 | val c = new C(b, 5) // error
|
3 | 3 | | ^^^^^^^^^^^
|
4 |
| - | Problematic object instantiation: the outer and arg 1 are not fully initialized. Calling trace: |
5 |
| - | -> class N(d: D) extends M(d) { [ secondary-ctor4.scala:59 ] |
6 |
| - | ^ |
7 |
| - | -> def this(d: D) = { [ secondary-ctor4.scala:7 ] |
8 |
| - | ^ |
9 |
| - | -> new A(new B(new D)) // error [ secondary-ctor4.scala:42 ] |
10 |
| - | ^^^^^ |
11 |
| - | -> class D { [ secondary-ctor4.scala:52 ] |
12 |
| - | ^ |
13 |
| - | -> val c = new C(b, 5) // error [ secondary-ctor4.scala:54 ] |
14 |
| - | ^^^^^^^^^^^ |
| 4 | + | Problematic object instantiation: the outer M.this and arg 1 are not fully initialized. Calling trace: |
| 5 | + | -> class N(d: D) extends M(d) { [ secondary-ctor4.scala:59 ] |
| 6 | + | ^ |
| 7 | + | -> def this(d: D) = { [ secondary-ctor4.scala:7 ] |
| 8 | + | ^ |
| 9 | + | -> new A(new B(new D)) // error [ secondary-ctor4.scala:42 ] |
| 10 | + | ^^^^^ |
| 11 | + | -> class D { [ secondary-ctor4.scala:52 ] |
| 12 | + | ^ |
| 13 | + | -> val c = new C(b, 5) // error [ secondary-ctor4.scala:54 ] |
| 14 | + | ^^^^^^^^^^^ |
15 | 15 | |
|
16 |
| - | It leads to the following error during object initialization: |
17 |
| - | Access field on a value with an unknown initialization status. Calling trace: |
18 |
| - | -> def this(b: B, x: Int) = this(b) [ secondary-ctor4.scala:49 ] |
19 |
| - | ^^^^^^^ |
20 |
| - | -> class C(b: B) extends A(b) with T { [ secondary-ctor4.scala:48 ] |
21 |
| - | ^ |
22 |
| - | -> def this(b: B) = { [ secondary-ctor4.scala:17 ] |
23 |
| - | ^ |
24 |
| - | -> Inner().foo() [ secondary-ctor4.scala:26 ] |
25 |
| - | ^^^^^^^ |
26 |
| - | -> class Inner() { [ secondary-ctor4.scala:21 ] |
27 |
| - | ^ |
28 |
| - | -> println(b.n) [ secondary-ctor4.scala:23 ] |
29 |
| - | ^^^ |
| 16 | + | It leads to the following error during object initialization: |
| 17 | + | Access field on a value with an unknown initialization status. Calling trace: |
| 18 | + | -> def this(b: B, x: Int) = this(b) [ secondary-ctor4.scala:49 ] |
| 19 | + | ^^^^^^^ |
| 20 | + | -> class C(b: B) extends A(b) with T { [ secondary-ctor4.scala:48 ] |
| 21 | + | ^ |
| 22 | + | -> def this(b: B) = { [ secondary-ctor4.scala:17 ] |
| 23 | + | ^ |
| 24 | + | -> Inner().foo() [ secondary-ctor4.scala:26 ] |
| 25 | + | ^^^^^^^ |
| 26 | + | -> class Inner() { [ secondary-ctor4.scala:21 ] |
| 27 | + | ^ |
| 28 | + | -> println(b.n) [ secondary-ctor4.scala:23 ] |
| 29 | + | ^^^ |
30 | 30 | -- Error: tests/init/neg/secondary-ctor4.scala:42:4 --------------------------------------------------------------------
|
31 | 31 | 42 | new A(new B(new D)) // error
|
32 | 32 | | ^^^^^^^^^^^^^^^^^^^
|
33 |
| - | Problematic object instantiation: the outer and arg 1 are not fully initialized. Calling trace: |
| 33 | + | Problematic object instantiation: the outer M.this and arg 1 are not fully initialized. Calling trace: |
34 | 34 | | -> class N(d: D) extends M(d) { [ secondary-ctor4.scala:59 ]
|
35 | 35 | | ^
|
36 | 36 | | -> def this(d: D) = { [ secondary-ctor4.scala:7 ]
|
|
0 commit comments