Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .typos.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[default.extend-words]
Egal = "Egal"
ket = "ket"
numer = "numer"

Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# News

## v1.0.8 - 2026-09-12

- Fix construction of `@resumable` iterators on Julia 1.14 development versions
by accepting the compiler's `TypeEgal` type wrappers.

## v1.0.7 - 2026-07-17

- Preserve standard logging macro metadata names, including `_group`, `event`,
Expand Down
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ license = "MIT"
desc = "C# sharp style generators a.k.a. semi-coroutines for Julia."
authors = ["Ben Lauwens and volunteer maintainers"]
repo = "https://github.com/JuliaDynamics/ResumableFunctions.jl.git"
version = "1.0.7"
version = "1.0.8"

[deps]
Logging = "56ddb016-857b-54e1-b83d-db4d58db5568"
Expand Down
13 changes: 11 additions & 2 deletions src/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -169,11 +169,20 @@ function code_typed_by_method(method::Method, @nospecialize(tt::Type), world::UI
return frame.linfo, ci
end

function (fsmi_generator::FSMIGenerator)(world::UInt, source, typed_fsmitype, fsmitype::Type{Type{T_}}, fargtypes) where T_
if isdefined(Core, :TypeEgal)
function (fsmi_generator::FSMIGenerator)(world::UInt, source, typed_fsmitype, fsmitype::Union{Core.TypeEq, Core.TypeEgal}, fargtypes)
_generate_fsmi(fsmi_generator, world, source, typed_fsmitype, Base.type_parameter(fsmitype), fargtypes)
end
else
function (fsmi_generator::FSMIGenerator)(world::UInt, source, typed_fsmitype, fsmitype::Type{Type{T_}}, fargtypes) where T_
_generate_fsmi(fsmi_generator, world, source, typed_fsmitype, T_, fargtypes)
end
end

function _generate_fsmi(fsmi_generator::FSMIGenerator, world::UInt, source, typed_fsmitype, T, fargtypes)
@nospecialize
# get typed code of the inference function evaluated in get_slots
# using the concrete argument types
T = T_
m = fsmi_generator.m
stub = Core.GeneratedFunctionStub(identity, Core.svec(:var"#self#", :fsmi, :fargs), Core.svec())
fargtypes = Tuple{fargtypes...} # convert (types...) to Tuple{types...}
Expand Down
Loading