|
2 | 2 | 3 | val x = B(this) // error |
3 | 3 | | ^^^^^^^ |
4 | 4 | | Problematic object instantiation: arg 1 is not transitively initialized (Hot). Calling trace: |
5 | | - | -> case class A(b: B) { [ cycle-structure.scala:1 ] |
6 | | - | ^ |
7 | | - | -> val x = B(this) // error [ cycle-structure.scala:3 ] |
| 5 | + | ├── case class A(b: B) { [ cycle-structure.scala:1 ] |
| 6 | + | │ ^ |
| 7 | + | └── val x = B(this) // error [ cycle-structure.scala:3 ] |
8 | 8 | | ^^^^^^^ |
9 | 9 | | |
10 | 10 | | It leads to the following error during object initialization: |
11 | 11 | | Access field value x on an uninitialized (Cold) object. Calling trace: |
12 | | - | -> case class B(a: A) { [ cycle-structure.scala:7 ] |
13 | | - | ^ |
14 | | - | -> val x1 = a.x [ cycle-structure.scala:8 ] |
| 12 | + | ├── case class B(a: A) { [ cycle-structure.scala:7 ] |
| 13 | + | │ ^ |
| 14 | + | └── val x1 = a.x [ cycle-structure.scala:8 ] |
15 | 15 | | ^^^ |
16 | 16 | -- Error: tests/init/neg/cycle-structure.scala:9:13 -------------------------------------------------------------------- |
17 | 17 | 9 | val x = A(this) // error |
18 | 18 | | ^^^^^^^ |
19 | 19 | | Problematic object instantiation: arg 1 is not transitively initialized (Hot). Calling trace: |
20 | | - | -> case class B(a: A) { [ cycle-structure.scala:7 ] |
21 | | - | ^ |
22 | | - | -> val x = A(this) // error [ cycle-structure.scala:9 ] |
| 20 | + | ├── case class B(a: A) { [ cycle-structure.scala:7 ] |
| 21 | + | │ ^ |
| 22 | + | └── val x = A(this) // error [ cycle-structure.scala:9 ] |
23 | 23 | | ^^^^^^^ |
24 | 24 | | |
25 | 25 | | It leads to the following error during object initialization: |
26 | 26 | | Access field value x on an uninitialized (Cold) object. Calling trace: |
27 | | - | -> case class A(b: B) { [ cycle-structure.scala:1 ] |
28 | | - | ^ |
29 | | - | -> val x1 = b.x [ cycle-structure.scala:2 ] |
| 27 | + | ├── case class A(b: B) { [ cycle-structure.scala:1 ] |
| 28 | + | │ ^ |
| 29 | + | └── val x1 = b.x [ cycle-structure.scala:2 ] |
30 | 30 | | ^^^ |
0 commit comments