2014-09-12 22:35:07 +02:00
|
|
|
tests/cases/conformance/parser/ecmascript5/ErrorRecovery/parserErrantAccessibilityModifierInModule1.ts(3,5): error TS1128: Declaration or statement expected.
|
|
|
|
tests/cases/conformance/parser/ecmascript5/ErrorRecovery/parserErrantAccessibilityModifierInModule1.ts(3,13): error TS2304: Cannot find name 'y'.
|
|
|
|
tests/cases/conformance/parser/ecmascript5/ErrorRecovery/parserErrantAccessibilityModifierInModule1.ts(4,18): error TS2304: Cannot find name 'y'.
|
|
|
|
|
|
|
|
|
2014-07-13 01:04:16 +02:00
|
|
|
==== tests/cases/conformance/parser/ecmascript5/ErrorRecovery/parserErrantAccessibilityModifierInModule1.ts (3 errors) ====
|
|
|
|
module M {
|
|
|
|
var x=10; // variable local to this module body
|
|
|
|
private y=x; // property visible only in module
|
|
|
|
~~~~~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS1128: Declaration or statement expected.
|
2014-07-13 01:04:16 +02:00
|
|
|
~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2304: Cannot find name 'y'.
|
2014-07-13 01:04:16 +02:00
|
|
|
export var z=y; // property visible to any code
|
|
|
|
~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2304: Cannot find name 'y'.
|
2014-07-13 01:04:16 +02:00
|
|
|
}
|