From 2023a7b2d9656f80b00de81453348c0a66f200f7 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Wed, 14 Aug 2024 20:44:26 +0300 Subject: test cleanup + Somewhat poor Git hygiene but I also fixed some bugs while I was at it. --- src/debug.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/debug.c') diff --git a/src/debug.c b/src/debug.c index e90f1ee..32c74a2 100644 --- a/src/debug.c +++ b/src/debug.c @@ -280,10 +280,18 @@ static void _type_str(FILE *fp, struct type *type) break; } + case TYPE_ENUM: { + struct ast *def = type->d; + if (enum_id(def)) { + fprintf(fp, "%s", enum_id(def)); + } + break; + } + case TYPE_TRAIT: { struct ast *def = type->d; if (trait_id(def)) { - fprintf(fp, "%s ", trait_id(def)); + fprintf(fp, "%s", trait_id(def)); } if (struct_params(def)) { -- cgit v1.3