mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
27 lines
586 B
TypeScript
27 lines
586 B
TypeScript
//// [tests/cases/conformance/classes/classDeclarations/modifierOnClassDeclarationMemberInFunction.ts] ////
|
|
|
|
//// [modifierOnClassDeclarationMemberInFunction.ts]
|
|
function f() {
|
|
class C {
|
|
public baz = 1;
|
|
static foo() { }
|
|
public bar() { }
|
|
}
|
|
}
|
|
|
|
//// [modifierOnClassDeclarationMemberInFunction.js]
|
|
"use strict";
|
|
function f() {
|
|
class C {
|
|
constructor() {
|
|
this.baz = 1;
|
|
}
|
|
static foo() { }
|
|
bar() { }
|
|
}
|
|
}
|
|
|
|
|
|
//// [modifierOnClassDeclarationMemberInFunction.d.ts]
|
|
declare function f(): void;
|