TypeScript/tests/baselines/reference/reservedNameOnInterfaceImport.js

11 lines
267 B
TypeScript

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