5 lines
101 B
Nix
5 lines
101 B
Nix
|
|
{...}: {
|
||
|
|
badType = expect: x:
|
||
|
|
throw "Expected type ${expect} but got ${builtins.typeOf x}.";
|
||
|
|
}
|