mirror of
https://github.com/swc-project/swc.git
synced 2024-12-20 04:01:39 +03:00
24 lines
471 B
TypeScript
24 lines
471 B
TypeScript
|
// @Filename: /a.ts
|
||
|
export class A {}
|
||
|
export class B {}
|
||
|
export class C {}
|
||
|
|
||
|
// @Filename: /b.ts
|
||
|
export type * from "./a";
|
||
|
export class C {}
|
||
|
|
||
|
// @Filename: /c.ts
|
||
|
import { A, B, C } from "./b";
|
||
|
let _: A = new A(); // Error
|
||
|
let __: B = new B(); // Error
|
||
|
let ___: C = new C(); // Ok
|
||
|
|
||
|
// @Filename: /d.ts
|
||
|
export type * from "./b";
|
||
|
|
||
|
// @Filename: /e.ts
|
||
|
import { A, B, C } from "./d";
|
||
|
let _: A = new A(); // Error
|
||
|
let __: B = new B(); // Error
|
||
|
let ___: C = new C(); // Error
|