mirror of
https://github.com/swc-project/swc.git
synced 2024-11-24 10:12:42 +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: "" }; |