mirror of
https://github.com/swc-project/swc.git
synced 2024-12-25 06:36:08 +03:00
8 lines
171 B
TypeScript
8 lines
171 B
TypeScript
// @filename: a.ts
|
|
export function assertNever(x: never, msg: string) {
|
|
throw new Error("Unexpected " + msg);
|
|
}
|
|
|
|
// @filename: b.ts
|
|
import { assertNevar } from "./a";
|