17 lines
290 B
TypeScript
17 lines
290 B
TypeScript
//// [scopeCheckInsidePublicMethod1.ts]
|
|
class C {
|
|
static s;
|
|
public a() {
|
|
s = 1; // ERR
|
|
}
|
|
}
|
|
|
|
//// [scopeCheckInsidePublicMethod1.js]
|
|
var C = (function () {
|
|
function C() {
|
|
}
|
|
C.prototype.a = function () {
|
|
s = 1; // ERR
|
|
};
|
|
return C;
|
|
})();
|