TypeScript/tests/cases/compiler/reservedNameOnInterfaceImport.ts

7 lines
187 B
TypeScript

declare module test {
interface istring { }
// Should error; 'test.istring' is a type, so this import conflicts with the 'string' type.
import string = test.istring;
}