struct Simple
a :: Int64
end
@resumable function thisdoesnotwork(n :: Int64) :: Simple
@yield Simple(n)
end
for a in thisdoesnotwork(10)
println(a)
end
Causes the following error for me
ERROR: MethodError: Cannot `convert` an object of type Bool to an object of type Simple
Example:
Causes the following error for me