aboutsummaryrefslogtreecommitdiff
path: root/src/debug.c
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2025-01-12 13:17:48 +0200
committerKimplul <kimi.h.kuparinen@gmail.com>2025-01-12 13:17:48 +0200
commit2d8691cfef92edf31da746668fd2da3c1fa5043c (patch)
tree0da07f8c72a8c842eae1af86eecea11d4fe6549b /src/debug.c
parent67af2eead2b9424ba311ef208cd45df839c3efbe (diff)
downloadek-2d8691cfef92edf31da746668fd2da3c1fa5043c.tar.gz
ek-2d8691cfef92edf31da746668fd2da3c1fa5043c.zip
highlight flaws in current unification system
Diffstat (limited to 'src/debug.c')
-rw-r--r--src/debug.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/debug.c b/src/debug.c
index 0908ee5..0e29efc 100644
--- a/src/debug.c
+++ b/src/debug.c
@@ -304,13 +304,14 @@ static void _type_str(FILE *fp, struct type *type)
case TYPE_STRUCT: {
struct ast *def = type->d;
- if (struct_id(def)) {
- fprintf(fp, "%s", struct_id(def));
+ struct ast *base = chain_base(def);
+ if (struct_id(base)) {
+ fprintf(fp, "%s", struct_id(base));
}
- if (struct_params(def)) {
+ if (struct_params(base)) {
fprintf(fp, "![");
- _param_str(fp, struct_params(def));
+ _param_str(fp, struct_params(base));
fprintf(fp, "]");
}
break;