TypeScript/tests/baselines/reference/varNameConflictsWithImportInDifferentPartOfModule.errors.txt

13 lines
531 B
Plaintext
Raw Normal View History

tests/cases/compiler/varNameConflictsWithImportInDifferentPartOfModule.ts(6,5): error TS2440: Import declaration conflicts with local declaration of 'q'
2014-07-13 01:04:16 +02:00
==== tests/cases/compiler/varNameConflictsWithImportInDifferentPartOfModule.ts (1 errors) ====
module M1 {
export var q = 5;
export var s = '';
}
module M1 {
export import q = M1.s; // Should be an error but isn't
~~~~~~~~~~~~~~~~~~~~~~~
!!! error TS2440: Import declaration conflicts with local declaration of 'q'
2014-07-13 01:04:16 +02:00
}