mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
21 lines
368 B
TypeScript
21 lines
368 B
TypeScript
//// [tests/cases/conformance/classes/propertyMemberDeclarations/staticPropertyAndFunctionWithSameName.ts] ////
|
|
|
|
//// [staticPropertyAndFunctionWithSameName.ts]
|
|
class C {
|
|
static f: number;
|
|
f: number;
|
|
}
|
|
|
|
class D {
|
|
static f: number;
|
|
f() { }
|
|
}
|
|
|
|
//// [staticPropertyAndFunctionWithSameName.js]
|
|
"use strict";
|
|
class C {
|
|
}
|
|
class D {
|
|
f() { }
|
|
}
|