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');
|
2015-04-13 23:01:57 +02:00
|
|
|
>ext : typeof ext, Symbol(ext, Decl(externalModuleAssignToVar_core.ts, 0, 0))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var y1: { C: new() => ext.C; } = ext;
|
2015-04-13 23:01:57 +02:00
|
|
|
>y1 : { C: new () => ext.C; }, Symbol(y1, Decl(externalModuleAssignToVar_core.ts, 2, 3))
|
|
|
|
>C : new () => ext.C, Symbol(C, Decl(externalModuleAssignToVar_core.ts, 2, 9))
|
|
|
|
>ext : any, Symbol(ext, Decl(externalModuleAssignToVar_core.ts, 0, 0))
|
|
|
|
>C : ext.C, Symbol(ext.C, Decl(externalModuleAssignToVar_core_require.ts, 0, 0))
|
|
|
|
>ext : typeof ext, Symbol(ext, Decl(externalModuleAssignToVar_core.ts, 0, 0))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
y1 = ext; // ok
|
2014-08-25 19:36:12 +02:00
|
|
|
>y1 = ext : typeof ext
|
2015-04-13 23:01:57 +02:00
|
|
|
>y1 : { C: new () => ext.C; }, Symbol(y1, Decl(externalModuleAssignToVar_core.ts, 2, 3))
|
|
|
|
>ext : typeof ext, Symbol(ext, Decl(externalModuleAssignToVar_core.ts, 0, 0))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
import ext2 = require('externalModuleAssignToVar_core_require2');
|
2015-04-13 23:01:57 +02:00
|
|
|
>ext2 : typeof ext2, Symbol(ext2, Decl(externalModuleAssignToVar_core.ts, 3, 9))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var y2: new() => ext2 = ext2;
|
2015-04-13 23:01:57 +02:00
|
|
|
>y2 : new () => ext2, Symbol(y2, Decl(externalModuleAssignToVar_core.ts, 6, 3))
|
|
|
|
>ext2 : ext2, Symbol(ext2, Decl(externalModuleAssignToVar_core.ts, 3, 9))
|
|
|
|
>ext2 : typeof ext2, Symbol(ext2, Decl(externalModuleAssignToVar_core.ts, 3, 9))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
y2 = ext2; // ok
|
2014-08-25 19:36:12 +02:00
|
|
|
>y2 = ext2 : typeof ext2
|
2015-04-13 23:01:57 +02:00
|
|
|
>y2 : new () => ext2, Symbol(y2, Decl(externalModuleAssignToVar_core.ts, 6, 3))
|
|
|
|
>ext2 : typeof ext2, Symbol(ext2, Decl(externalModuleAssignToVar_core.ts, 3, 9))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
import ext3 = require('externalModuleAssignToVar_ext');
|
2015-04-13 23:01:57 +02:00
|
|
|
>ext3 : typeof ext3, Symbol(ext3, Decl(externalModuleAssignToVar_core.ts, 7, 10))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var y3: new () => ext3 = ext3;
|
2015-04-13 23:01:57 +02:00
|
|
|
>y3 : new () => ext3, Symbol(y3, Decl(externalModuleAssignToVar_core.ts, 10, 3))
|
|
|
|
>ext3 : ext3, Symbol(ext3, Decl(externalModuleAssignToVar_core.ts, 7, 10))
|
|
|
|
>ext3 : typeof ext3, Symbol(ext3, Decl(externalModuleAssignToVar_core.ts, 7, 10))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
y3 = ext3; // ok
|
2014-08-25 19:36:12 +02:00
|
|
|
>y3 = ext3 : typeof ext3
|
2015-04-13 23:01:57 +02:00
|
|
|
>y3 : new () => ext3, Symbol(y3, Decl(externalModuleAssignToVar_core.ts, 10, 3))
|
|
|
|
>ext3 : typeof ext3, Symbol(ext3, Decl(externalModuleAssignToVar_core.ts, 7, 10))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
=== tests/cases/compiler/externalModuleAssignToVar_ext.ts ===
|
|
|
|
class D { foo: string; }
|
2015-04-13 23:01:57 +02:00
|
|
|
>D : D, Symbol(D, Decl(externalModuleAssignToVar_ext.ts, 0, 0))
|
|
|
|
>foo : string, Symbol(foo, Decl(externalModuleAssignToVar_ext.ts, 0, 9))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
export = D;
|
2015-04-13 23:01:57 +02:00
|
|
|
>D : D, Symbol(D, Decl(externalModuleAssignToVar_ext.ts, 0, 0))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
=== tests/cases/compiler/externalModuleAssignToVar_core_require.ts ===
|
|
|
|
export class C { bar: string; }
|
2015-04-13 23:01:57 +02:00
|
|
|
>C : C, Symbol(C, Decl(externalModuleAssignToVar_core_require.ts, 0, 0))
|
|
|
|
>bar : string, Symbol(bar, Decl(externalModuleAssignToVar_core_require.ts, 0, 16))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
=== tests/cases/compiler/externalModuleAssignToVar_core_require2.ts ===
|
|
|
|
class C { baz: string; }
|
2015-04-13 23:01:57 +02:00
|
|
|
>C : C, Symbol(C, Decl(externalModuleAssignToVar_core_require2.ts, 0, 0))
|
|
|
|
>baz : string, Symbol(baz, Decl(externalModuleAssignToVar_core_require2.ts, 0, 9))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
export = C;
|
2015-04-13 23:01:57 +02:00
|
|
|
>C : C, Symbol(C, Decl(externalModuleAssignToVar_core_require2.ts, 0, 0))
|
2014-08-15 23:33:16 +02:00
|
|
|
|