File tree 3 files changed +4
-4
lines changed
compiler/src/dotty/tools/dotc/transform/init
3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1221,12 +1221,12 @@ object Semantic {
1221
1221
eval(qual, thisV, klass)
1222
1222
val res = eval(rhs, thisV, klass)
1223
1223
extendTrace(rhs) {
1224
- res.ensureHot(" The RHS of an assignment to a field must be fully initialized." )
1224
+ res.ensureHot(" The RHS of reassignment must be fully initialized." )
1225
1225
}
1226
1226
case id : Ident =>
1227
1227
val res = eval(rhs, thisV, klass)
1228
1228
extendTrace(rhs) {
1229
- res.ensureHot(" The RHS of an assignment to a field must be fully initialized." )
1229
+ res.ensureHot(" The RHS of reassignment must be fully initialized." )
1230
1230
}
1231
1231
1232
1232
case closureDef(ddef) =>
Original file line number Diff line number Diff line change 1
1
-- Error: tests/init/neg/inherit-non-hot.scala:6:34 --------------------------------------------------------------------
2
2
6 | if b == null then b = new B(this) // error
3
3
| ^^^^^^^^^^^
4
- | The RHS of an assignment to a field must be fully initialized. Calling trace:
4
+ | The RHS of reassignment must be fully initialized. Calling trace:
5
5
| -> object Foo { [ inherit-non-hot.scala:2 ]
6
6
| ^
7
7
| -> val c = new C [ inherit-non-hot.scala:19 ]
Original file line number Diff line number Diff line change 1
1
-- Error: tests/init/neg/local-warm4.scala:18:20 -----------------------------------------------------------------------
2
2
18 | a = newA // error
3
3
| ^^^^
4
- | The RHS of an assignment to a field must be fully initialized. Calling trace:
4
+ | The RHS of reassignment must be fully initialized. Calling trace:
5
5
| -> object localWarm { [ local-warm4.scala:1 ]
6
6
| ^
7
7
| -> val a = new A(5) [ local-warm4.scala:26 ]
You can’t perform that action at this time.
0 commit comments