1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
|
// @noUnusedLocals: true
// @target: esnext
// @useDefineForClassFields: false
class Test1 {
private static m1() {}
public static test() {
Test1.m1();
}
}
class Test2 {
private static p1 = 0
public static test() {
Test2.p1;
}
}
class Test3 {
private static p1 = 0;
private static m1() {}
}
class Test4 {
private static m1(n: number): number {
return (n === 0) ? 1 : (n * Test4.m1(n - 1));
}
private static m2(n: number): number {
return (n === 0) ? 1 : (n * Test4["m2"](n - 1));
}
}
class Test5 {
private static m1() {}
public static test() {
Test5["m1"]();
}
}
class Test6 {
private static p1 = 0;
public static test() {
Test6["p1"];
}
}
|