2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/externalModuleAssignToVar_core.ts ===
|
|
|
|
///<reference path='externalModuleAssignToVar_core_require.ts'/>
|
|
|
|
import ext = require('externalModuleAssignToVar_core_require');
|
2014-08-28 21:40:58 +02:00
|
|
|
>ext : typeof ext
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var y1: { C: new() => ext.C; } = ext;
|
2014-08-25 19:36:12 +02:00
|
|
|
>y1 : { C: new () => ext.C; }
|
|
|
|
>C : new () => ext.C
|
2014-08-28 21:40:58 +02:00
|
|
|
>ext : unknown
|
2014-08-25 19:36:12 +02:00
|
|
|
>C : ext.C
|
|
|
|
>ext : typeof ext
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
y1 = ext; // ok
|
2014-08-25 19:36:12 +02:00
|
|
|
>y1 = ext : typeof ext
|
|
|
|
>y1 : { C: new () => ext.C; }
|
|
|
|
>ext : typeof ext
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
import ext2 = require('externalModuleAssignToVar_core_require2');
|
2014-08-28 21:40:58 +02:00
|
|
|
>ext2 : typeof ext2
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var y2: new() => ext2 = ext2;
|
2014-08-25 19:36:12 +02:00
|
|
|
>y2 : new () => ext2
|
|
|
|
>ext2 : ext2
|
|
|
|
>ext2 : typeof ext2
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
y2 = ext2; // ok
|
2014-08-25 19:36:12 +02:00
|
|
|
>y2 = ext2 : typeof ext2
|
|
|
|
>y2 : new () => ext2
|
|
|
|
>ext2 : typeof ext2
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
import ext3 = require('externalModuleAssignToVar_ext');
|
2014-08-28 21:40:58 +02:00
|
|
|
>ext3 : typeof ext3
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var y3: new () => ext3 = ext3;
|
2014-08-25 19:36:12 +02:00
|
|
|
>y3 : new () => ext3
|
|
|
|
>ext3 : ext3
|
|
|
|
>ext3 : typeof ext3
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
y3 = ext3; // ok
|
2014-08-25 19:36:12 +02:00
|
|
|
>y3 = ext3 : typeof ext3
|
|
|
|
>y3 : new () => ext3
|
|
|
|
>ext3 : typeof ext3
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
=== tests/cases/compiler/externalModuleAssignToVar_ext.ts ===
|
|
|
|
class D { foo: string; }
|
|
|
|
>D : D
|
|
|
|
>foo : string
|
|
|
|
|
|
|
|
export = D;
|
|
|
|
>D : D
|
|
|
|
|
|
|
|
=== tests/cases/compiler/externalModuleAssignToVar_core_require.ts ===
|
|
|
|
export class C { bar: string; }
|
|
|
|
>C : C
|
|
|
|
>bar : string
|
|
|
|
|
|
|
|
=== tests/cases/compiler/externalModuleAssignToVar_core_require2.ts ===
|
|
|
|
class C { baz: string; }
|
|
|
|
>C : C
|
|
|
|
>baz : string
|
|
|
|
|
|
|
|
export = C;
|
|
|
|
>C : C
|
|
|
|
|