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 81c2bad commit 75890dcCopy full SHA for 75890dc
src/compiler.ts
@@ -3514,6 +3514,16 @@ export class Compiler extends DiagnosticEmitter {
3514
this.currentType = compiled.type;
3515
break;
3516
}
3517
+ case NodeKind.CLASS: {
3518
+ // TODO: compile as class expression
3519
+ this.error(
3520
+ DiagnosticCode.Not_implemented_0,
3521
+ expression.range,
3522
+ "Block-scoped class declarations or expressions"
3523
+ );
3524
+ expr = this.module.unreachable();
3525
+ break;
3526
+ }
3527
default: {
3528
assert(false);
3529
expr = this.module.unreachable();
0 commit comments