mirror of
https://github.com/swc-project/swc.git
synced 2024-12-18 19:21:33 +03:00
b887b30092
**Description:** This is required for https://github.com/swc-project/swc/pull/6981 and https://github.com/swc-project/swc/pull/6950
30 lines
564 B
TypeScript
30 lines
564 B
TypeScript
// @Filename: /a.ts
|
|
enum SyntaxKind {
|
|
ImportClause,
|
|
ExportDeclaration
|
|
}
|
|
|
|
const enum SymbolFlags {
|
|
Type = "Type",
|
|
Value = "Value"
|
|
}
|
|
|
|
export type { SyntaxKind };
|
|
export { SymbolFlags };
|
|
|
|
// @Filename: /b.ts
|
|
import type { SyntaxKind, SymbolFlags } from './a';
|
|
|
|
SyntaxKind.ImportClause;
|
|
SymbolFlags.Type;
|
|
let kind: SyntaxKind.ImportClause;
|
|
let flags: SymbolFlags;
|
|
|
|
type TypeFlag = SymbolFlags.Type;
|
|
export type { TypeFlag };
|
|
|
|
// @Filename: /c.ts
|
|
import { SymbolFlags } from './a';
|
|
import type { TypeFlag } from './b';
|
|
const flags: TypeFlag = SymbolFlags.Type;
|