aboutsummaryrefslogtreecommitdiff
path: root/src/types.cpp
diff options
context:
space:
mode:
authorGinger Bill <bill@gingerbill.org>2017-06-25 22:15:30 +0100
committerGinger Bill <bill@gingerbill.org>2017-06-25 22:15:30 +0100
commit1ced92be473ef6f1c6aa0058bcf89c4ded684379 (patch)
treea111c9aae3b74619b3cf27a2a17ebed0100af7f5 /src/types.cpp
parent15dbea6899fd1e918f4ea0dc91045e0dc460657e (diff)
Rudimentary para-poly procedures
Diffstat (limited to 'src/types.cpp')
-rw-r--r--src/types.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/types.cpp b/src/types.cpp
index f6399a7a0..8f645b431 100644
--- a/src/types.cpp
+++ b/src/types.cpp
@@ -2234,6 +2234,10 @@ gbString write_type_to_string(gbString str, Type *type) {
str = gb_string_append_length(str, type->Basic.name.text, type->Basic.name.len);
break;
+ case Type_Generic:
+ str = gb_string_appendc(str, "type");
+ break;
+
case Type_Pointer:
str = gb_string_appendc(str, "^");
str = write_type_to_string(str, type->Pointer.elem);