Indicates the unreachable code path. Calling this throws an error immediately, so this function should be called only if your application data is not consistent.
import { absurd } from "./func.ts";import { assertThrows } from "../deps.ts";assertThrows(() => { absurd<number>(); throw new Error("this line must not be run");}, "PANIC: absurd must not be called"); Copy
import { absurd } from "./func.ts";import { assertThrows } from "../deps.ts";assertThrows(() => { absurd<number>(); throw new Error("this line must not be run");}, "PANIC: absurd must not be called");
Generated using TypeDoc
Indicates the unreachable code path. Calling this throws an error immediately, so this function should be called only if your application data is not consistent.
Examples