TypeScript/tests/baselines/reference/parserModuleDeclaration11.types

23 lines
448 B
Text
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-25 19:36:12 +02:00
>string : string
2014-08-15 23:33:16 +02:00
interface X { }
>X : X
export function foo(s: string);
2014-08-22 03:39:46 +02:00
>foo : typeof foo
2014-08-15 23:33:16 +02:00
>s : string
}
string.foo("abc");
>string.foo("abc") : any
2014-08-25 19:36:12 +02:00
>string.foo : typeof string.foo
2014-08-15 23:33:16 +02:00
>string : typeof string
2014-08-25 19:36:12 +02:00
>foo : typeof string.foo
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-15 23:33:16 +02:00
>string : string
2014-08-25 19:36:12 +02:00
>X : string.X
2014-08-15 23:33:16 +02:00