9 lines
No EOL
210 B
Text
9 lines
No EOL
210 B
Text
==== tests/cases/compiler/scopeCheckInsidePublicMethod1.ts (1 errors) ====
|
|
class C {
|
|
static s;
|
|
public a() {
|
|
s = 1; // ERR
|
|
~
|
|
!!! Cannot find name 's'.
|
|
}
|
|
} |