swc/crates/swc_ecma_parser/tests/tsc/importEquals2.ts

14 lines
203 B
TypeScript

// @esModuleInterop: true
// @Filename: /a.ts
class A {}
export type { A }
// @Filename: /b.ts
import * as a from './a';
export = a;
// @Filename: /c.ts
import a = require('./b');
new a.A(); // Error