mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
23 lines
366 B
TypeScript
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() {
|
|
}
|
|
};
|