aboutsummaryrefslogtreecommitdiff
path: root/src/checker/types.c
diff options
context:
space:
mode:
authorGinger Bill <bill@gingerbill.org>2016-11-29 22:08:48 +0000
committerGinger Bill <bill@gingerbill.org>2016-11-29 22:08:48 +0000
commitb232b9d5ea23fdd4d53f8e93cdfeb1f962811331 (patch)
tree6b4fbe56bf1fc7e7929104790cfb05b42b5f4071 /src/checker/types.c
parent348bcc3f9a1375ddf24b952fad537b5c84e84053 (diff)
Basic `when` statement - Compile time if statement
This is similar to an #if in C but handled during the semantic checking stage.
Diffstat (limited to 'src/checker/types.c')
-rw-r--r--src/checker/types.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/checker/types.c b/src/checker/types.c
index 26ac633fb..72ce813ea 100644
--- a/src/checker/types.c
+++ b/src/checker/types.c
@@ -1371,7 +1371,7 @@ gbString write_type_to_string(gbString str, Type *type) {
break;
case Type_Vector:
- str = gb_string_appendc(str, gb_bprintf("{%td}", type->Vector.count));
+ str = gb_string_appendc(str, gb_bprintf("[vector %td]", type->Vector.count));
str = write_type_to_string(str, type->Vector.elem);
break;