Updated like the PR #2375

This commit is contained in:
Christoffer Lerno
2025-08-06 11:28:36 +02:00
parent 9c770f360e
commit 29bae1fbd6
2 changed files with 9 additions and 4 deletions

View File

@@ -147,11 +147,13 @@ fn usz? Formatter.out_str(&self, any arg) @private
return self.out_substr("void");
case FAULT:
fault f = *(fault*)arg.ptr;
return self.out_substr(f ? f.nameof : "(nofault)");
return self.out_substr(f ? f.nameof : "(empty-fault)");
case INTERFACE:
any a = *(any*)arg;
return a ? self.out_str(a) : self.out_substr("(empty-interface)");
case ANY:
any a = *(any*)arg;
return a ? self.out_str(a) : self.out_substr("(null)");
return a ? self.out_str(a) : self.out_substr("(empty-any)");
case OPTIONAL:
unreachable();
case SIGNED_INT: