mirror of
https://github.com/swc-project/swc.git
synced 2024-12-22 21:21:31 +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";
|