|
| 1 | +-- Error: tests/init/neg/super-resolution3.scala:27:6 ------------------------------------------------------------------ |
| 2 | +27 | val n = 40 // error |
| 3 | + | ^ |
| 4 | + | Access non-initialized value n. Calling trace: |
| 5 | + | -> class C extends A with M with N: [ super-resolution3.scala:22 ] |
| 6 | + | ^ |
| 7 | + | -> new Inner() [ super-resolution3.scala:23 ] |
| 8 | + | ^^^^^^^^^^^ |
| 9 | + | -> class Inner: [ super-resolution3.scala:17 ] |
| 10 | + | ^ |
| 11 | + | -> N.super[A].foo() [ super-resolution3.scala:18 ] |
| 12 | + | ^^^^^^^^^^^^^^^^ |
| 13 | + | -> def foo(): Int = n [ super-resolution3.scala:3 ] |
| 14 | + | ^ |
| 15 | +-- Error: tests/init/neg/super-resolution3.scala:26:6 ------------------------------------------------------------------ |
| 16 | +26 | val m = 30 // error |
| 17 | + | ^ |
| 18 | + | Access non-initialized value m. Calling trace: |
| 19 | + | -> class C extends A with M with N: [ super-resolution3.scala:22 ] |
| 20 | + | ^ |
| 21 | + | -> new Inner() [ super-resolution3.scala:23 ] |
| 22 | + | ^^^^^^^^^^^ |
| 23 | + | -> class Inner: [ super-resolution3.scala:17 ] |
| 24 | + | ^ |
| 25 | + | -> N.super.foo() [ super-resolution3.scala:19 ] |
| 26 | + | ^^^^^^^^^^^^^ |
| 27 | + | -> override def foo(): Int = a + super.foo() [ super-resolution3.scala:11 ] |
| 28 | + | ^^^^^^^^^^^ |
| 29 | + | -> def foo(): Int = m [ super-resolution3.scala:7 ] |
| 30 | + | ^ |
| 31 | +-- Error: tests/init/neg/super-resolution3.scala:24:6 ------------------------------------------------------------------ |
| 32 | +24 | val a = 10 // error |
| 33 | + | ^ |
| 34 | + | Access non-initialized value a. Calling trace: |
| 35 | + | -> class C extends A with M with N: [ super-resolution3.scala:22 ] |
| 36 | + | ^ |
| 37 | + | -> new Inner() [ super-resolution3.scala:23 ] |
| 38 | + | ^^^^^^^^^^^ |
| 39 | + | -> class Inner: [ super-resolution3.scala:17 ] |
| 40 | + | ^ |
| 41 | + | -> N.super.foo() [ super-resolution3.scala:19 ] |
| 42 | + | ^^^^^^^^^^^^^ |
| 43 | + | -> override def foo(): Int = a + super.foo() [ super-resolution3.scala:11 ] |
| 44 | + | ^ |
| 45 | +-- Error: tests/init/neg/super-resolution3.scala:25:6 ------------------------------------------------------------------ |
| 46 | +25 | val b = 20 // error |
| 47 | + | ^ |
| 48 | + | Access non-initialized value b. Calling trace: |
| 49 | + | -> class C extends A with M with N: [ super-resolution3.scala:22 ] |
| 50 | + | ^ |
| 51 | + | -> new Inner() [ super-resolution3.scala:23 ] |
| 52 | + | ^^^^^^^^^^^ |
| 53 | + | -> class Inner: [ super-resolution3.scala:17 ] |
| 54 | + | ^ |
| 55 | + | -> foo() [ super-resolution3.scala:20 ] |
| 56 | + | ^^^^^ |
| 57 | + | -> override def foo(): Int = b * super.foo() [ super-resolution3.scala:15 ] |
| 58 | + | ^ |
0 commit comments