TypeScript/tests/baselines/reference/objectLiteralShorthandPropertiesErrorWithModule.errors.txt

24 lines
807 B
Plaintext
Raw Normal View History

2014-11-19 01:15:04 +01:00
tests/cases/conformance/es6/shorthandPropertyAssignment/objectLiteralShorthandPropertiesErrorWithModule.ts(10,10): error TS1005: ':' expected.
2014-11-15 01:30:03 +01:00
tests/cases/conformance/es6/shorthandPropertyAssignment/objectLiteralShorthandPropertiesErrorWithModule.ts(14,3): error TS2339: Property 'y' does not exist on type 'typeof m'.
==== tests/cases/conformance/es6/shorthandPropertyAssignment/objectLiteralShorthandPropertiesErrorWithModule.ts (2 errors) ====
// module export
var x = "Foo";
module m {
export var x;
}
module n {
var z = 10000;
export var y = {
m.x // error
~
2014-11-19 01:15:04 +01:00
!!! error TS1005: ':' expected.
2014-11-15 01:30:03 +01:00
};
}
m.y.x;
~
!!! error TS2339: Property 'y' does not exist on type 'typeof m'.