Closed jpopadak closed 4 years ago
@jpopadak You're absolutely right, that's a bug. Thanks for troubleshooting this already. I'll see if I can fix this within the next days.
@jpopadak Just pushed a change on develop
. Could you have a look please? If it works, I'll merge it into master and make a new release.
@jpopadak Please let me know in case you still have trouble with this. Otherwise, I'll consider this fixed and will release it to master
sometime next week.
Looks like this was fixed with 2.7.0. Thanks! :)
Yes, those arguments make zero sense, but it works to cause the issue we are seeing in real code. Source:
Test:
Turns out this is due to these generated lines always expecting at least 1 value passed into the variadic function:
_param1 = make([][]context.Context, len(params[1]))
The code does a length check, but does not check to see if the data inside theparams
> the number of arguments minus the number of variadic.Generated code: