2015-05-06 19:13:32 +02:00
|
|
|
tests/cases/compiler/importedModuleAddToGlobal.ts(15,23): error TS2503: Cannot find namespace 'b'.
|
2014-09-12 22:35:07 +02:00
|
|
|
|
|
|
|
|
2014-07-13 01:04:16 +02:00
|
|
|
==== tests/cases/compiler/importedModuleAddToGlobal.ts (1 errors) ====
|
|
|
|
// Binding for an import statement in a typeref position is being added to the global scope
|
|
|
|
// Shouldn't compile b.B is not defined in C
|
|
|
|
module A {
|
|
|
|
import b = B;
|
|
|
|
import c = C;
|
|
|
|
}
|
|
|
|
|
|
|
|
module B {
|
|
|
|
import a = A;
|
|
|
|
export class B { }
|
|
|
|
}
|
|
|
|
|
|
|
|
module C {
|
|
|
|
import a = A;
|
|
|
|
function hello(): b.B { return null; }
|
2015-03-02 21:21:53 +01:00
|
|
|
~
|
2015-05-06 19:13:32 +02:00
|
|
|
!!! error TS2503: Cannot find namespace 'b'.
|
2014-07-13 01:04:16 +02:00
|
|
|
}
|