Add diverging, optional_ok to proc canon name

This commit is contained in:
misomosi
2026-07-02 13:31:38 -04:00
parent e276ce552b
commit 90a1a9b54d

View File

@@ -972,6 +972,12 @@ gb_internal void write_type_to_canonical_string(TypeWriter *w, Type *type) {
type_writer_appendc(w, "->");
write_canonical_params(w, type->Proc.results);
}
if (type->Proc.diverging) {
type_writer_appendc(w, "!");
}
if (type->Proc.optional_ok) {
type_writer_appendc(w, "#optional_ok");
}
return;
case Type_Generic:
@@ -1010,4 +1016,4 @@ gb_internal void write_type_to_canonical_string(TypeWriter *w, Type *type) {
}
return;
}
}