TypeScript/tests/baselines/reference/parserModuleDeclaration11.types
2014-08-15 14:37:48 -07:00

23 lines
451 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 : X
>string : string
>X : X