2014-08-28 01:58:31 +02:00
|
|
|
=== tests/cases/compiler/consumer.ts ===
|
|
|
|
import Drawing = require('./Drawing');
|
2014-08-28 21:40:58 +02:00
|
|
|
>Drawing : typeof Drawing
|
2014-08-28 01:58:31 +02:00
|
|
|
|
|
|
|
var addr = new Drawing.Math.Adder();
|
|
|
|
>addr : Adder
|
|
|
|
>new Drawing.Math.Adder() : Adder
|
|
|
|
>Drawing.Math.Adder : typeof Adder
|
|
|
|
>Drawing.Math : { Adder: typeof Adder; }
|
|
|
|
>Drawing : typeof Drawing
|
|
|
|
>Math : { Adder: typeof Adder; }
|
|
|
|
>Adder : typeof Adder
|
|
|
|
|
|
|
|
=== tests/cases/compiler/Drawing.ts ===
|
|
|
|
export import Math = require('Math/Math')
|
2014-08-28 21:40:58 +02:00
|
|
|
>Math : { Adder: typeof Adder; }
|
2014-08-28 01:58:31 +02:00
|
|
|
|
|
|
|
=== tests/cases/compiler/Math/Math.ts ===
|
|
|
|
import Adder = require('Math/Adder');
|
2014-08-28 21:40:58 +02:00
|
|
|
>Adder : typeof Adder
|
2014-08-28 01:58:31 +02:00
|
|
|
|
|
|
|
var Math = {
|
|
|
|
>Math : { Adder: typeof Adder; }
|
|
|
|
>{ Adder:Adder} : { Adder: typeof Adder; }
|
|
|
|
|
|
|
|
Adder:Adder
|
|
|
|
>Adder : typeof Adder
|
|
|
|
>Adder : typeof Adder
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
export = Math
|
|
|
|
>Math : { Adder: typeof Adder; }
|
|
|
|
|
|
|
|
=== tests/cases/compiler/Math/Adder.ts ===
|
|
|
|
class Adder {
|
|
|
|
>Adder : Adder
|
|
|
|
|
|
|
|
add(a: number, b: number) {
|
|
|
|
>add : (a: number, b: number) => void
|
|
|
|
>a : number
|
|
|
|
>b : number
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export = Adder;
|
|
|
|
>Adder : Adder
|
|
|
|
|