Files

23 lines
366 B
TypeScript

//// [tests/cases/compiler/classExpressions.ts] ////
//// [classExpressions.ts]
interface A {}
let x = class B implements A {
prop: number;
onStart(): void {
}
func = () => {
}
};
//// [classExpressions.js]
"use strict";
let x = class B {
constructor() {
this.func = () => {
};
}
onStart() {
}
};