Commit fa34235
committed
Propagate the DEFAULTINIT flag to the underlying field
Fields initialized with `_` are excluded from initialization
checks under `-Xcheckinit`.
Since 5f86b1d, the compiler checks that flag on the field symbol
instead of the getter. Unfortunately the flag was not actually copied
to the field symbol, causing the init check to be added.
Fixes scala/bug#10439 and it also fixes scala/bug#10437.1 parent e12ac74 commit fa34235
File tree
3 files changed
+16
-1
lines changed- src/reflect/scala/reflect/internal
- test/files/run
3 files changed
+16
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
268 | 268 | | |
269 | 269 | | |
270 | 270 | | |
271 | | - | |
| 271 | + | |
272 | 272 | | |
273 | 273 | | |
274 | 274 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
0 commit comments