TypeScript/tests/baselines/reference/import_var-referencing-an-imported-module-alias.types

21 lines
722 B
Plaintext
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/consumer.ts ===
import host = require("host");
2015-04-13 23:01:57 +02:00
>host : typeof host, Symbol(host, Decl(consumer.ts, 0, 0))
2014-08-15 23:33:16 +02:00
var hostVar = host;
2015-04-13 23:01:57 +02:00
>hostVar : typeof host, Symbol(hostVar, Decl(consumer.ts, 2, 3))
>host : typeof host, Symbol(host, Decl(consumer.ts, 0, 0))
2014-08-15 23:33:16 +02:00
var v = new hostVar.Host();
2015-04-13 23:01:57 +02:00
>v : host.Host, Symbol(v, Decl(consumer.ts, 3, 3))
2014-08-25 19:36:12 +02:00
>new hostVar.Host() : host.Host
2015-04-13 23:01:57 +02:00
>hostVar.Host : typeof host.Host, Symbol(host.Host, Decl(host.ts, 0, 0))
>hostVar : typeof host, Symbol(hostVar, Decl(consumer.ts, 2, 3))
>Host : typeof host.Host, Symbol(host.Host, Decl(host.ts, 0, 0))
2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/host.ts ===
export class Host { }
2015-04-13 23:01:57 +02:00
>Host : Host, Symbol(Host, Decl(host.ts, 0, 0))
2014-08-15 23:33:16 +02:00