TypeScript/tests/baselines/reference/chainedImportAlias.types

25 lines
989 B
Plaintext
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/chainedImportAlias_file1.ts ===
2014-08-28 01:58:31 +02:00
import x = require('chainedImportAlias_file0');
2015-04-13 23:01:57 +02:00
>x : typeof x, Symbol(x, Decl(chainedImportAlias_file1.ts, 0, 0))
2014-08-15 23:33:16 +02:00
import y = x;
2015-04-13 23:01:57 +02:00
>y : typeof x, Symbol(y, Decl(chainedImportAlias_file1.ts, 0, 47))
>x : typeof x, Symbol(x, Decl(chainedImportAlias_file0.ts, 0, 0))
2014-08-15 23:33:16 +02:00
2014-08-28 01:58:31 +02:00
y.m.foo();
>y.m.foo() : void
2015-04-13 23:01:57 +02:00
>y.m.foo : () => void, Symbol(x.m.foo, Decl(chainedImportAlias_file0.ts, 0, 17))
>y.m : typeof x.m, Symbol(x.m, Decl(chainedImportAlias_file0.ts, 0, 0))
>y : typeof x, Symbol(y, Decl(chainedImportAlias_file1.ts, 0, 47))
>m : typeof x.m, Symbol(x.m, Decl(chainedImportAlias_file0.ts, 0, 0))
>foo : () => void, Symbol(x.m.foo, Decl(chainedImportAlias_file0.ts, 0, 17))
2014-08-15 23:33:16 +02:00
2014-08-28 01:58:31 +02:00
=== tests/cases/compiler/chainedImportAlias_file0.ts ===
export module m {
2015-04-13 23:01:57 +02:00
>m : typeof m, Symbol(m, Decl(chainedImportAlias_file0.ts, 0, 0))
2014-08-15 23:33:16 +02:00
2014-08-28 01:58:31 +02:00
export function foo() { }
2015-04-13 23:01:57 +02:00
>foo : () => void, Symbol(foo, Decl(chainedImportAlias_file0.ts, 0, 17))
2014-08-28 01:58:31 +02:00
}
2014-08-15 23:33:16 +02:00