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);
|
2014-08-28 21:52:44 +02:00
|
|
|
>foo : (s: string) => any
|
2014-08-15 23:33:16 +02:00
|
|
|
>s : string
|
|
|
|
}
|
|
|
|
string.foo("abc");
|
|
|
|
>string.foo("abc") : any
|
2014-08-28 21:52:44 +02:00
|
|
|
>string.foo : (s: string) => any
|
2014-08-15 23:33:16 +02:00
|
|
|
>string : typeof string
|
2014-08-28 21:52:44 +02:00
|
|
|
>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
|
|
|
|