|
| 1 | +-- Error: tests/neg/i11225.scala:5:16 ---------------------------------------------------------------------------------- |
| 2 | +5 | val x1: Int = uninitialized // error |
| 3 | + | ^^^^^^^^^^^^^ |
| 4 | + | `uninitialized` can only be used as the right hand side of a mutable field definition |
| 5 | +-- Error: tests/neg/i11225.scala:6:28 ---------------------------------------------------------------------------------- |
| 6 | +6 | var x2: Int = if ??? then uninitialized else uninitialized // error // error |
| 7 | + | ^^^^^^^^^^^^^ |
| 8 | + | `uninitialized` can only be used as the right hand side of a mutable field definition |
| 9 | +-- Error: tests/neg/i11225.scala:6:47 ---------------------------------------------------------------------------------- |
| 10 | +6 | var x2: Int = if ??? then uninitialized else uninitialized // error // error |
| 11 | + | ^^^^^^^^^^^^^ |
| 12 | + | `uninitialized` can only be used as the right hand side of a mutable field definition |
| 13 | +-- Error: tests/neg/i11225.scala:7:29 ---------------------------------------------------------------------------------- |
| 14 | +7 | var x3: Int = if true then uninitialized else 1 // error |
| 15 | + | ^^^^^^^^^^^^^ |
| 16 | + | `uninitialized` can only be used as the right hand side of a mutable field definition |
| 17 | +-- Error: tests/neg/i11225.scala:9:28 ---------------------------------------------------------------------------------- |
| 18 | +9 | var x5: () => Int = () => uninitialized // error |
| 19 | + | ^^^^^^^^^^^^^ |
| 20 | + | `uninitialized` can only be used as the right hand side of a mutable field definition |
| 21 | +-- Error: tests/neg/i11225.scala:10:18 --------------------------------------------------------------------------------- |
| 22 | +10 | var x6: Int = { uninitialized } // error |
| 23 | + | ^^^^^^^^^^^^^ |
| 24 | + | `uninitialized` can only be used as the right hand side of a mutable field definition |
| 25 | +-- Error: tests/neg/i11225.scala:13:22 --------------------------------------------------------------------------------- |
| 26 | +13 | var cached: Int = uninitialized // error |
| 27 | + | ^^^^^^^^^^^^^ |
| 28 | + | `uninitialized` can only be used as the right hand side of a mutable field definition |
| 29 | +-- Error: tests/neg/i11225.scala:14:30 --------------------------------------------------------------------------------- |
| 30 | +14 | cached = if x then 1 else uninitialized // error |
| 31 | + | ^^^^^^^^^^^^^ |
| 32 | + | `uninitialized` can only be used as the right hand side of a mutable field definition |
| 33 | +-- Error: tests/neg/i11225.scala:17:4 ---------------------------------------------------------------------------------- |
| 34 | +17 | uninitialized // error |
| 35 | + | ^^^^^^^^^^^^^ |
| 36 | + | `uninitialized` can only be used as the right hand side of a mutable field definition |
| 37 | +-- Error: tests/neg/i11225.scala:18:4 ---------------------------------------------------------------------------------- |
| 38 | +18 | uninitialized // error |
| 39 | + | ^^^^^^^^^^^^^ |
| 40 | + | `uninitialized` can only be used as the right hand side of a mutable field definition |
| 41 | +-- Error: tests/neg/i11225.scala:23:4 ---------------------------------------------------------------------------------- |
| 42 | +23 | uninitialized // error |
| 43 | + | ^^^^^^^^^^^^^ |
| 44 | + | `uninitialized` can only be used as the right hand side of a mutable field definition |
| 45 | +-- Error: tests/neg/i11225.scala:30:16 --------------------------------------------------------------------------------- |
| 46 | +30 | var x7: Int = uni // error |
| 47 | + | ^^^ |
| 48 | + | `uninitialized` can only be used as the right hand side of a mutable field definition |
| 49 | + | This location contains code that was inlined from i11225.scala:25 |
0 commit comments