TypeScript/tests/baselines/reference/parserModuleDeclaration11.types

24 lines
1 KiB
Plaintext
Raw Normal View History

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