* add a more meaningful error message to the case when calling a public static method on an instance * Fix tests
16 lines
235 B
TypeScript
16 lines
235 B
TypeScript
// @strict: true
|
|
// @target: ES5
|
|
|
|
class A {
|
|
public static x: number = 1;
|
|
public static y: number = 1;
|
|
private static _b: number = 2;
|
|
}
|
|
|
|
const a = new A();
|
|
|
|
a['y'] // Error
|
|
a.y // Error
|
|
A._b // Error
|
|
A.a
|