Files
tsgo/testdata/baselines/reference/submodule/conformance/parserErrantAccessibilityModifierInModule1.js

18 lines
612 B
TypeScript

//// [tests/cases/conformance/parser/ecmascript5/ErrorRecovery/parserErrantAccessibilityModifierInModule1.ts] ////
//// [parserErrantAccessibilityModifierInModule1.ts]
namespace M {
var x=10; // variable local to this module body
private y=x; // property visible only in module
export var z=y; // property visible to any code
}
//// [parserErrantAccessibilityModifierInModule1.js]
"use strict";
var M;
(function (M) {
var x = 10; // variable local to this module body
y = x; // property visible only in module
M.z = y; // property visible to any code
})(M || (M = {}));