TypeScript/tests/baselines/reference/dottedModuleName.errors.txt
Cyrus Najmabadi fe57f3d2e4 Support modifiers on object literal methods and accessors, and question tokens on object literal methods.
This makes parsing of these constructs the same whether they are in an object literal or a class.

This is important for incrementla parsing for knowing if we can reuse these nodes if we run
into them.
2014-12-10 22:30:40 -08:00

28 lines
708 B
Plaintext

tests/cases/compiler/dottedModuleName.ts(3,29): error TS1144: '{' or ';' expected.
tests/cases/compiler/dottedModuleName.ts(3,33): error TS2304: Cannot find name 'x'.
==== tests/cases/compiler/dottedModuleName.ts (2 errors) ====
module M {
export module N {
export function f(x:number)=>2*x;
~~
!!! error TS1144: '{' or ';' expected.
~
!!! error TS2304: Cannot find name 'x'.
export module X.Y.Z {
export var v2=f(v);
}
}
}
module M.N {
export module X {
export module Y.Z {
export var v=f(10);
}
}
}