JuliaLang/julia
GitHub で見る"@inferred requires a call expression" for do notation
Open
#59,114 opened on 2025年7月28日
good first issue
説明
Lambda functions work fine, while the same do-block throws an error:
julia> using Test
julia> @inferred map(x->x, [1,2])
2-element Vector{Int64}:
1
2
julia> @inferred map([1,2]) do x
x
end
ERROR: LoadError: @inferred requires a call expression