bleeding: typesystem

This commit is contained in:
Emile Clark-Boman 2025-12-18 11:26:47 +10:00
parent 452dcf99bb
commit 3d9ec28bfc
6 changed files with 88 additions and 4 deletions

View file

@ -1,4 +1,4 @@
{...}: {
{nib, ...}: {
badType = expect: x:
throw "Expected type ${expect} but got ${builtins.typeOf x}.";
throw "Expected type ${expect} but got ${nib.typeOf x}.";
}