mirror of
https://github.com/swc-project/swc.git
synced 2024-12-19 19:52:21 +03:00
11 lines
252 B
TypeScript
11 lines
252 B
TypeScript
|
// @Filename: /a.ts
|
||
|
export class A<T> { a!: T }
|
||
|
export type { A as B };
|
||
|
|
||
|
// @Filename: /b.ts
|
||
|
import type { A } from './a';
|
||
|
import { B } from './a';
|
||
|
let a: A<string> = { a: "" };
|
||
|
let b: B<number> = { a: 3 };
|
||
|
let c: A<boolean> = {};
|
||
|
let d: B = { a: "" };
|