TypeScript/tests/baselines/reference/parserModuleDeclaration11.types
2014-08-28 12:52:44 -07:00

23 lines
466 B
Plaintext

=== tests/cases/conformance/parser/ecmascript5/ModuleDeclarations/parserModuleDeclaration11.ts ===
declare module string {
>string : typeof string
interface X { }
>X : X
export function foo(s: string);
>foo : (s: string) => any
>s : string
}
string.foo("abc");
>string.foo("abc") : any
>string.foo : (s: string) => any
>string : typeof string
>foo : (s: string) => any
var x: string.X;
>x : string.X
>string : unknown
>X : string.X