mirror of
https://github.com/swc-project/swc.git
synced 2024-12-25 06:36:08 +03:00
18 lines
339 B
TypeScript
18 lines
339 B
TypeScript
// @Filename: /a.ts
|
|
export class A {}
|
|
export class B {}
|
|
|
|
// @Filename: /b.ts
|
|
export class B {}
|
|
export class C {}
|
|
|
|
// @Filename: /c.ts
|
|
export type * from "./a";
|
|
export * from "./b"; // Collision error
|
|
|
|
// @Filename: /d.ts
|
|
import { A, B, C } from "./c";
|
|
let _: A = new A(); // Error
|
|
let __: B = new B(); // Ok
|
|
let ___: C = new C(); // Ok
|