26 lines
No EOL
705 B
Text
26 lines
No EOL
705 B
Text
==== tests/cases/compiler/consumer.ts (0 errors) ====
|
|
import Drawing = require('./Drawing');
|
|
var addr = new Drawing.Math.Adder();
|
|
|
|
==== tests/cases/compiler/Drawing.ts (0 errors) ====
|
|
export import Math = require('Math/Math')
|
|
|
|
==== tests/cases/compiler/Math/Math.ts (0 errors) ====
|
|
import Adder = require('Math/Adder');
|
|
|
|
var Math = {
|
|
Adder:Adder
|
|
};
|
|
|
|
export = Math
|
|
|
|
==== tests/cases/compiler/Math/Adder.ts (1 errors) ====
|
|
class Adder {
|
|
add(a: number, b: number) {
|
|
|
|
}
|
|
}
|
|
|
|
export = Adder;
|
|
~~~~~~~~~~~~~~~
|
|
!!! Cannot compile external modules unless the '--module' flag is provided. |