From 78cf00cb506cb86112cb715e4d2d69ec11b20c42 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Mon, 27 Mar 2023 03:18:48 +0300 Subject: change typeof to be a full time type --- src/debug.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/debug.c') diff --git a/src/debug.c b/src/debug.c index e42aedc..c9a1f86 100644 --- a/src/debug.c +++ b/src/debug.c @@ -206,6 +206,11 @@ static void _type_str(FILE *fp, struct ast_node *type) fprintf(fp, ")"); } } + + case AST_TYPE_TYPEOF: { + _type_str(fp, type->_type.typeo.actual); + fprintf(fp, " (typeof)"); + } } _type_str(fp, type->_type.next); -- cgit v1.3