fix: correct assign from function returning an interface value (#625)
This commit is contained in:
@@ -678,7 +678,7 @@ func call(n *node) {
|
||||
switch {
|
||||
case c.ident == "_":
|
||||
// Skip assigning return value to blank var.
|
||||
case c.typ.cat == interfaceT:
|
||||
case c.typ.cat == interfaceT && rtypes[i].cat != interfaceT:
|
||||
rvalues[i] = genValueInterfaceValue(c)
|
||||
default:
|
||||
rvalues[i] = genValue(c)
|
||||
|
||||
Reference in New Issue
Block a user