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.
Base.@nospecializeinfer
1 parent 4b0f303 commit 9ca08e9Copy full SHA for 9ca08e9
base/expr.jl
@@ -795,6 +795,9 @@ while it can not infer the concrete return type of it.
795
Without the `@nospecializeinfer`, `f([1.0])` would infer the return type of `g` as `Float64`,
796
indicating that inference ran for `g(::Vector{Float64})` despite the prohibition on
797
specialized code generation.
798
+
799
+!!! compat "Julia 1.10"
800
+ Using `Base.@nospecializeinfer` requires Julia version 1.10.
801
"""
802
macro nospecializeinfer(ex)
803
esc(isa(ex, Expr) ? pushmeta!(ex, :nospecializeinfer) : ex)
0 commit comments