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 42c2dbc commit 70c3bf9Copy full SHA for 70c3bf9
1 file changed
src/compiler.ts
@@ -5837,7 +5837,10 @@ export class Compiler extends DiagnosticEmitter {
5837
break;
5838
}
5839
default: {
5840
- assert(false);
+ this.error(
5841
+ DiagnosticCode.Cannot_assign_to_0_because_it_is_a_constant_or_a_read_only_property,
5842
+ expression.range, target.internalName
5843
+ );
5844
return this.module.unreachable();
5845
5846
0 commit comments