TypeScript/tests/baselines/reference/parserModuleDeclaration11.types

24 lines
479 B
Plaintext
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/conformance/parser/ecmascript5/ModuleDeclarations/parserModuleDeclaration11.ts ===
declare module string {
>string : typeof string
2014-08-15 23:33:16 +02:00
interface X { }
>X : X
2014-08-15 23:33:16 +02:00
export function foo(s: string);
>foo : (s: string) => any
>s : string
2014-08-15 23:33:16 +02:00
}
string.foo("abc");
>string.foo("abc") : any
>string.foo : (s: string) => any
>string : typeof string
>foo : (s: string) => any
2015-04-13 21:36:11 +02:00
>"abc" : string
2014-08-15 23:33:16 +02:00
var x: string.X;
>x : string.X
>string : any
>X : string.X
2014-08-15 23:33:16 +02:00