22 lines
No EOL
635 B
Text
22 lines
No EOL
635 B
Text
tests/cases/compiler/importedModuleAddToGlobal.ts(15,23): error TS2304: Cannot find name 'b'.
|
|
|
|
|
|
==== 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; }
|
|
~
|
|
!!! error TS2304: Cannot find name 'b'.
|
|
} |