mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
16 lines
660 B
Plaintext
16 lines
660 B
Plaintext
//// [tests/cases/conformance/parser/ecmascript5/ErrorRecovery/parserErrantAccessibilityModifierInModule1.ts] ////
|
|
|
|
=== parserErrantAccessibilityModifierInModule1.ts ===
|
|
namespace M {
|
|
>M : Symbol(M, Decl(parserErrantAccessibilityModifierInModule1.ts, 0, 0))
|
|
|
|
var x=10; // variable local to this module body
|
|
>x : Symbol(x, Decl(parserErrantAccessibilityModifierInModule1.ts, 1, 7))
|
|
|
|
private y=x; // property visible only in module
|
|
>x : Symbol(x, Decl(parserErrantAccessibilityModifierInModule1.ts, 1, 7))
|
|
|
|
export var z=y; // property visible to any code
|
|
>z : Symbol(z, Decl(parserErrantAccessibilityModifierInModule1.ts, 3, 14))
|
|
}
|