2015-03-02 21:21:53 +01:00
|
|
|
tests/cases/compiler/moduleImport.ts(2,17): error TS2305: Module 'X' has no exported member 'Y'.
|
|
|
|
tests/cases/compiler/moduleImport.ts(2,17): error TS2339: Property 'Y' does not exist on type 'typeof X'.
|
2014-09-12 22:35:07 +02:00
|
|
|
|
|
|
|
|
2015-03-02 21:21:53 +01:00
|
|
|
==== tests/cases/compiler/moduleImport.ts (2 errors) ====
|
2014-07-13 01:04:16 +02:00
|
|
|
module A.B.C {
|
|
|
|
import XYZ = X.Y.Z;
|
2015-03-02 21:21:53 +01:00
|
|
|
~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2305: Module 'X' has no exported member 'Y'.
|
2015-03-02 21:21:53 +01:00
|
|
|
~
|
|
|
|
!!! error TS2339: Property 'Y' does not exist on type 'typeof X'.
|
2014-07-13 01:04:16 +02:00
|
|
|
export function ping(x: number) {
|
|
|
|
if (x>0) XYZ.pong (x-1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
module X {
|
|
|
|
import ABC = A.B.C;
|
|
|
|
export function pong(x: number) {
|
|
|
|
if (x > 0) ABC.ping(x-1);
|
|
|
|
}
|
|
|
|
}
|