fix #13076: codegen error when using anonymous struct

Signed-off-by: cai.li <cai.li@qingteng.cn>
This commit is contained in:
cai.li
2024-08-09 21:09:17 +08:00
committed by Nick Khyl
parent b9f42814b5
commit 2506bf5b06
2 changed files with 79 additions and 1 deletions

View File

@@ -247,7 +247,7 @@ func AssertStructUnchanged(t *types.Struct, tname string, params *types.TypePara
}
}
if st.Anonymous() {
w("\t%s %s", fname, tag)
w("\t%s %s", qname, tag)
} else {
w("\t%s %s %s", fname, qname, tag)
}