2014-09-12 22:35:07 +02:00
|
|
|
tests/cases/compiler/reservedNameOnModuleImportWithInterface.ts(6,12): error TS2438: Import name cannot be 'string'
|
|
|
|
|
|
|
|
|
2014-07-16 20:48:34 +02:00
|
|
|
==== tests/cases/compiler/reservedNameOnModuleImportWithInterface.ts (1 errors) ====
|
|
|
|
declare module test {
|
|
|
|
interface mi_string { }
|
|
|
|
module mi_string { }
|
|
|
|
|
|
|
|
// Should error; imports both a type and a module, which means it conflicts with the 'string' type.
|
|
|
|
import string = mi_string;
|
|
|
|
~~~~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2438: Import name cannot be 'string'
|
2014-07-16 20:48:34 +02:00
|
|
|
}
|
|
|
|
|