Skip to content

Interpolated string with Any in @resumable fails after loading CSV #156

Description

@Krastanov-agent

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions