-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Closed
Description
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 %2This occured here.
Metadata
Metadata
Assignees
Labels
No labels