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

21 lines
409 B
Plaintext
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/consumer.ts ===
import host = require("host");
>host : typeof host
2014-08-15 23:33:16 +02:00
var hostVar = host;
>hostVar : typeof host
>host : typeof host
2014-08-15 23:33:16 +02:00
var v = new hostVar.Host();
>v : host.Host
2014-08-25 19:36:12 +02:00
>new hostVar.Host() : host.Host
>hostVar.Host : typeof host.Host
>hostVar : typeof host
>Host : typeof host.Host
2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/host.ts ===
export class Host { }
>Host : Host
2014-08-15 23:33:16 +02:00