mirror of
https://github.com/swc-project/swc.git
synced 2024-12-26 23:27:56 +03:00
22 lines
560 B
TypeScript
22 lines
560 B
TypeScript
|
// @module: esnext
|
||
|
// @declaration: true
|
||
|
|
||
|
// @Filename: /imports.ts
|
||
|
import { type, as, something, foo, bar } from "./exports.js";
|
||
|
type;
|
||
|
as; // Error (used in emitting position)
|
||
|
something; // Error (used in emitting position)
|
||
|
foo; // Error (used in emitting position)
|
||
|
bar; // Error (used in emitting position)
|
||
|
|
||
|
// @Filename: /exports.ts
|
||
|
const type = 0;
|
||
|
const as = 0;
|
||
|
const something = 0;
|
||
|
export { type };
|
||
|
export { type as };
|
||
|
export { type something };
|
||
|
export { type type as foo };
|
||
|
export { type as as bar };
|
||
|
export type { type something as whatever }; // Error
|