fix #13076: codegen error when using anonymous struct
Signed-off-by: cai.li <cai.li@qingteng.cn>
This commit is contained in:
@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user