We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e08d269 commit 29d31e9Copy full SHA for 29d31e9
compiler/src/dotty/tools/backend/sjs/JSCodeGen.scala
@@ -981,8 +981,9 @@ class JSCodeGen()(implicit ctx: Context) {
981
currentMethodSym.get.owner == qualifier.symbol &&
982
qualifier.isInstanceOf[This]
983
)
984
- if (!sym.is(Mutable) && !ctorAssignment)
985
- throw new FatalError(s"Assigning to immutable field ${sym.fullName} at $pos")
+ // TODO This fails for OFFSET$x fields. Re-enable when we can.
+ /*if (!sym.is(Mutable) && !ctorAssignment)
986
+ throw new FatalError(s"Assigning to immutable field ${sym.fullName} at $pos")*/
987
988
val genQual = genExpr(qualifier)
989
0 commit comments