We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The following does not infer:
julia> f(itr) = map(Int∘sign, itr) f (generic function with 2 methods) julia> f((1,)) (1,) julia> @code_warntype f((1,)) Variables #self#::Core.Compiler.Const(f, false) itr::Tuple{Int64} Body::Tuple{Any} 1 ─ %1 = (Main.Int ∘ Main.sign)::Core.Compiler.Const(Base.var"#56#57"{DataType,typeof(sign)}(Int64, sign), false) │ %2 = Main.map(%1, itr)::Tuple{Any} └── return %2
This occured here.
The text was updated successfully, but these errors were encountered:
This is because closures capture types as DataTypes #23618 (comment)
DataType
It's easy to "fix" this for ∘ but it'd be great if it can be fixed for all closures.
∘
Sorry, something went wrong.
Ok I close this as it is a dup of #23618
Successfully merging a pull request may close this issue.
The following does not infer:
This occured here.
The text was updated successfully, but these errors were encountered: