TypeScript/tests/baselines/reference/scopeCheckInsideStaticMethod1.errors.txt
2014-09-11 16:11:08 -07:00

15 lines
396 B
Plaintext

==== tests/cases/compiler/scopeCheckInsideStaticMethod1.ts (2 errors) ====
class C {
private v;
public p;
static s;
static b() {
v = 1; // ERR
~
!!! error TS2304: Cannot find name 'v'.
C.s = 1;
this.p = 1; // ERR
~
!!! error TS2339: Property 'p' does not exist on type 'typeof C'.
}
}