TypeScript/tests/baselines/reference/importedModuleAddToGlobal.errors.txt
Mohamed Hegazy e43680de11 show more clearly error message when found missing module name
Conflicts:
	src/compiler/diagnosticInformationMap.generated.ts
	src/compiler/diagnosticMessages.json
2015-05-06 10:13:32 -07:00

22 lines
645 B
Plaintext

tests/cases/compiler/importedModuleAddToGlobal.ts(15,23): error TS2503: Cannot find namespace '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 TS2503: Cannot find namespace 'b'.
}