core
core copied to clipboard
yaegi doesn't like `a := tensor.CallOutMulti("Mul", x, tensor.NewIntScalar(2))[0]`
Describe the bug
$ x := 4
b := tensor.CallOutMulti("Mul", x, tensor.NewIntScalar(2))[0]
1:28: constant definition loop
if you pre-define b, and then switch to =, it works.
if you use CallOut instead of CallOutMulti, it works.
filing this here instead of yaegi because I will just fix it at some point and send a pr.
How to reproduce
see above.
Example code
No response
Relevant output
No response
Platform
macOS