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