fe57f3d2e4
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.
28 lines
No EOL
708 B
Text
28 lines
No EOL
708 B
Text
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);
|
|
}
|
|
}
|
|
}
|
|
|