9 lines
224 B
Plaintext
9 lines
224 B
Plaintext
==== tests/cases/compiler/scopeCheckInsidePublicMethod1.ts (1 errors) ====
|
|
class C {
|
|
static s;
|
|
public a() {
|
|
s = 1; // ERR
|
|
~
|
|
!!! error TS2304: Cannot find name 's'.
|
|
}
|
|
} |