fix: implement variadic using a type category to avoid corruption
This commit is contained in:
committed by
Traefiker Bot
parent
2f0279f0f5
commit
82dd3f2953
@@ -614,7 +614,7 @@ func call(n *node) {
|
||||
if c.kind == basicLit {
|
||||
var argType reflect.Type
|
||||
if variadic >= 0 && i >= variadic {
|
||||
argType = n.child[0].typ.arg[variadic].TypeOf()
|
||||
argType = n.child[0].typ.arg[variadic].val.TypeOf()
|
||||
} else {
|
||||
argType = n.child[0].typ.arg[i].TypeOf()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user