edit from Stefan, the human: I have checked this bot report, it is real, it came up in a piece of code related to QuantumSavory.jl
Below is the bot-generated report:
This reproduces for me on Julia 1.12.5, ResumableFunctions master at 7fe93a0, and CSV 0.10.16:
using ResumableFunctions
const G = Ref{Any}(1.0)
@resumable function f()
s = "Fidelity: $(G[])"
@yield s
end
using CSV
collect(f())
This throws TypeError: in ##f_FSMI#..., expected ...<:String, got Type{Any}.
If using CSV is moved before the @resumable definition, it succeeds. s = string("Fidelity: ", G[])::String also succeeds.
edit from Stefan, the human: I have checked this bot report, it is real, it came up in a piece of code related to QuantumSavory.jl
Below is the bot-generated report:
This reproduces for me on Julia 1.12.5, ResumableFunctions master at
7fe93a0, and CSV0.10.16:This throws
TypeError: in ##f_FSMI#..., expected ...<:String, got Type{Any}.If
using CSVis moved before the@resumabledefinition, it succeeds.s = string("Fidelity: ", G[])::Stringalso succeeds.