check types.Struct isClosure

This commit is contained in:
xushiwei
2024-05-05 13:29:20 +08:00
parent 18a63e226a
commit ebf4c80aff
4 changed files with 21 additions and 6 deletions

View File

@@ -1041,7 +1041,7 @@ func (b Builder) Call(fn Expr, args ...Expr) (ret Expr) {
if name == "" {
name = "closure"
}
fmt.Fprint(&b, "Call ", fn.raw.Type, " ", name)
fmt.Fprint(&b, "Call ", fn.kind, " ", fn.raw.Type, " ", name)
sep := ": "
for _, arg := range args {
fmt.Fprint(&b, sep, arg.impl)