We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89b4d80 commit 4be4369Copy full SHA for 4be4369
src/copyable_task.jl
@@ -374,8 +374,8 @@ get_value(x) = x
374
expression, otherwise `false`.
375
"""
376
function is_produce_stmt(x)::Bool
377
- if Meta.isexpr(x, :invoke) && length(x.args) == 3
378
- return get_value(x.args[2]) === produce
+ if Meta.isexpr(x, :invoke) && length(x.args) == 3 && x.args[1] isa Core.MethodInstance
+ return x.args[1].specTypes <: Tuple{typeof(produce),Any}
379
elseif Meta.isexpr(x, :call) && length(x.args) == 2
380
return get_value(x.args[1]) === produce
381
else
0 commit comments