|
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: arg 1 is not hot. Calling trace: |
| 4 | + | Problematic object instantiation: arg 1 is not hot (transitively initialized). Calling trace: |
5 | 5 | | -> class D { [ secondary-ctor4.scala:52 ] |
6 | 6 | | ^ |
7 | 7 | | -> val c = new C(b, 5) // error [ secondary-ctor4.scala:54 ] |
|
24 | 24 | -- Error: tests/init/neg/secondary-ctor4.scala:42:4 -------------------------------------------------------------------- |
25 | 25 | 42 | new A(new B(new D)) // error |
26 | 26 | | ^^^^^^^^^^^^^^^^^^^ |
27 | | - | Problematic object instantiation: the outer M.this and arg 1 are not hot. Calling trace: |
28 | | - | -> class N(d: D) extends M(d) { [ secondary-ctor4.scala:59 ] |
29 | | - | ^ |
30 | | - | -> def this(d: D) = { [ secondary-ctor4.scala:7 ] |
31 | | - | ^ |
32 | | - | -> new A(new B(new D)) // error [ secondary-ctor4.scala:42 ] |
33 | | - | ^^^^^^^^^^^^^^^^^^^ |
| 27 | + |Problematic object instantiation: the outer M.this and arg 1 are not hot (transitively initialized). Calling trace: |
| 28 | + |-> class N(d: D) extends M(d) { [ secondary-ctor4.scala:59 ] |
| 29 | + | ^ |
| 30 | + |-> def this(d: D) = { [ secondary-ctor4.scala:7 ] |
| 31 | + | ^ |
| 32 | + |-> new A(new B(new D)) // error [ secondary-ctor4.scala:42 ] |
| 33 | + | ^^^^^^^^^^^^^^^^^^^ |
34 | 34 | | |
35 | | - | It leads to the following error during object initialization: |
36 | | - | Access field value n on a cold object. Calling trace: |
37 | | - | -> def this(b: B) = { [ secondary-ctor4.scala:17 ] |
38 | | - | ^ |
39 | | - | -> Inner().foo() [ secondary-ctor4.scala:26 ] |
40 | | - | ^^^^^^^ |
41 | | - | -> class Inner() { [ secondary-ctor4.scala:21 ] |
42 | | - | ^ |
43 | | - | -> println(b.n) [ secondary-ctor4.scala:23 ] |
44 | | - | ^^^ |
| 35 | + |It leads to the following error during object initialization: |
| 36 | + |Access field value n on a cold object. Calling trace: |
| 37 | + |-> def this(b: B) = { [ secondary-ctor4.scala:17 ] |
| 38 | + | ^ |
| 39 | + |-> Inner().foo() [ secondary-ctor4.scala:26 ] |
| 40 | + | ^^^^^^^ |
| 41 | + |-> class Inner() { [ secondary-ctor4.scala:21 ] |
| 42 | + | ^ |
| 43 | + |-> println(b.n) [ secondary-ctor4.scala:23 ] |
| 44 | + | ^^^ |
0 commit comments