mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
29 lines
656 B
TypeScript
29 lines
656 B
TypeScript
//// [tests/cases/conformance/classes/classExpressions/modifierOnClassExpressionMemberInFunction.ts] ////
|
|
|
|
//// [modifierOnClassExpressionMemberInFunction.ts]
|
|
function g() {
|
|
var x = class C {
|
|
public prop1 = 1;
|
|
private foo() { }
|
|
static prop2 = 43;
|
|
}
|
|
}
|
|
|
|
//// [modifierOnClassExpressionMemberInFunction.js]
|
|
"use strict";
|
|
function g() {
|
|
var _a;
|
|
var x = (_a = class C {
|
|
constructor() {
|
|
this.prop1 = 1;
|
|
}
|
|
foo() { }
|
|
},
|
|
_a.prop2 = 43,
|
|
_a);
|
|
}
|
|
|
|
|
|
//// [modifierOnClassExpressionMemberInFunction.d.ts]
|
|
declare function g(): void;
|