mirror of
https://github.com/odin-lang/Odin.git
synced 2026-07-11 02:19:30 +00:00
Add diverging, optional_ok to proc canon name
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user