mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
18 lines
612 B
TypeScript
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 = {}));
|