TypeScript/tests/baselines/reference/parserModuleDeclaration11.types
2015-04-15 16:44:20 -07:00

24 lines
479 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
>"abc" : string
var x: string.X;
>x : string.X
>string : any
>X : string.X