TypeScript/tests/baselines/reference/multiImportExport.types

50 lines
1.7 KiB
Plaintext
Raw Normal View History

2014-08-28 01:58:31 +02:00
=== tests/cases/compiler/consumer.ts ===
import Drawing = require('./Drawing');
2015-04-13 23:01:57 +02:00
>Drawing : typeof Drawing, Symbol(Drawing, Decl(consumer.ts, 0, 0))
2014-08-28 01:58:31 +02:00
var addr = new Drawing.Math.Adder();
2015-04-13 23:01:57 +02:00
>addr : Adder, Symbol(addr, Decl(consumer.ts, 1, 3))
2014-08-28 01:58:31 +02:00
>new Drawing.Math.Adder() : Adder
2015-04-13 23:01:57 +02:00
>Drawing.Math.Adder : typeof Adder, Symbol(Adder, Decl(Math.ts, 2, 12))
>Drawing.Math : { Adder: typeof Adder; }, Symbol(Drawing.Math, Decl(Drawing.ts, 0, 0))
>Drawing : typeof Drawing, Symbol(Drawing, Decl(consumer.ts, 0, 0))
>Math : { Adder: typeof Adder; }, Symbol(Drawing.Math, Decl(Drawing.ts, 0, 0))
>Adder : typeof Adder, Symbol(Adder, Decl(Math.ts, 2, 12))
2014-08-28 01:58:31 +02:00
=== tests/cases/compiler/Drawing.ts ===
export import Math = require('Math/Math')
2015-04-13 23:01:57 +02:00
>Math : { Adder: typeof Adder; }, Symbol(Math, Decl(Drawing.ts, 0, 0))
2014-08-28 01:58:31 +02:00
=== tests/cases/compiler/Math/Math.ts ===
import Adder = require('Math/Adder');
2015-04-13 23:01:57 +02:00
>Adder : typeof Adder, Symbol(Adder, Decl(Math.ts, 0, 0))
2014-08-28 01:58:31 +02:00
var Math = {
2015-04-13 23:01:57 +02:00
>Math : { Adder: typeof Adder; }, Symbol(Math, Decl(Math.ts, 2, 3))
2014-08-28 01:58:31 +02:00
>{ Adder:Adder} : { Adder: typeof Adder; }
Adder:Adder
2015-04-13 23:01:57 +02:00
>Adder : typeof Adder, Symbol(Adder, Decl(Math.ts, 2, 12))
>Adder : typeof Adder, Symbol(Adder, Decl(Math.ts, 0, 0))
2014-08-28 01:58:31 +02:00
};
export = Math
2015-04-13 23:01:57 +02:00
>Math : { Adder: typeof Adder; }, Symbol(Math, Decl(Math.ts, 2, 3))
2014-08-28 01:58:31 +02:00
=== tests/cases/compiler/Math/Adder.ts ===
class Adder {
2015-04-13 23:01:57 +02:00
>Adder : Adder, Symbol(Adder, Decl(Adder.ts, 0, 0))
2014-08-28 01:58:31 +02:00
add(a: number, b: number) {
2015-04-13 23:01:57 +02:00
>add : (a: number, b: number) => void, Symbol(add, Decl(Adder.ts, 0, 13))
>a : number, Symbol(a, Decl(Adder.ts, 1, 8))
>b : number, Symbol(b, Decl(Adder.ts, 1, 18))
2014-08-28 01:58:31 +02:00
}
}
export = Adder;
2015-04-13 23:01:57 +02:00
>Adder : Adder, Symbol(Adder, Decl(Adder.ts, 0, 0))
2014-08-28 01:58:31 +02:00