TypeScript/tests/baselines/reference/parserModuleDeclaration11.types

23 lines
466 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 {
2014-08-28 21:40:58 +02:00
>string : typeof string
2014-08-15 23:33:16 +02:00
interface X { }
>X : X
export function foo(s: string);
>foo : (s: string) => any
2014-08-15 23:33:16 +02:00
>s : string
}
string.foo("abc");
>string.foo("abc") : any
>string.foo : (s: string) => any
2014-08-15 23:33:16 +02:00
>string : typeof string
>foo : (s: string) => any
2014-08-15 23:33:16 +02:00
var x: string.X;
2014-08-25 19:36:12 +02:00
>x : string.X
2014-08-28 21:40:58 +02:00
>string : unknown
2014-08-25 19:36:12 +02:00
>X : string.X
2014-08-15 23:33:16 +02:00