26 lines
No EOL
619 B
Text
26 lines
No EOL
619 B
Text
==== tests/cases/compiler/dottedModuleName.ts (3 errors) ====
|
|
module M {
|
|
export module N {
|
|
export function f(x:number)=>2*x;
|
|
~~
|
|
!!! Block or ';' expected.
|
|
~
|
|
!!! Function implementation is missing or not immediately following the declaration.
|
|
~
|
|
!!! 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);
|
|
}
|
|
}
|
|
}
|
|
|