From 580ae22a986d204b90f57df741f8a56126f1ba1c Mon Sep 17 00:00:00 2001 From: lisyarus Date: Mon, 30 Mar 2026 20:29:39 +0300 Subject: [PATCH] Fix printing struct fields --- libs/ast/source/print.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/ast/source/print.cpp b/libs/ast/source/print.cpp index cd60b6b..8207f44 100644 --- a/libs/ast/source/print.cpp +++ b/libs/ast/source/print.cpp @@ -486,7 +486,7 @@ namespace pslang::ast for (auto const & field : node.fields) { put_indent(out, as_child(options)); - out << "field { name = \"" << node.name << "\", type = "; + out << "field { name = \"" << field.name << "\", type = "; print(out, *field.type); out << ", offset = " << field.layout.offset << " }\n"; }