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 0726f51 commit 82d8e3eCopy full SHA for 82d8e3e
src/methods.jl
@@ -80,7 +80,7 @@ function number_methods(T, rhs1, rhs2, options=nothing)
80
81
# Fix method ambiguity error on NaNMath >= 1.0.2 and promotion of `Integer`s on NaNMath < 1.0.2
82
if f === NaNMath.pow
83
- push!(exprs, :($(NaNMath.pow)(a::$T, b::Integer) = ($assert_like($(NaNMath.pow), Number, a); $term($(^), a, b))))
+ push!(exprs, :((f::$(typeof(f)))(a::$T, b::Integer) = ($assert_like(f, Number, a); $term($(^), a, b))))
84
end
85
86
0 commit comments