core icon indicating copy to clipboard operation
core copied to clipboard

yaegi doesn't like `a := tensor.CallOutMulti("Mul", x, tensor.NewIntScalar(2))[0]`

Open rcoreilly opened this issue 1 year ago • 0 comments

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

rcoreilly avatar Sep 18 '24 15:09 rcoreilly