Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/methods.jl
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,11 @@ function number_methods(T, rhs1, rhs2, options=nothing)
end

push!(exprs, expr)

# Fix method ambiguity error on NaNMath >= 1.0.2 and promotion of `Integer`s on NaNMath < 1.0.2
if f === NaNMath.pow
push!(exprs, :((f::$(typeof(f)))(a::$T, b::Integer) = ($assert_like(f, Number, a); $term($(^), a, b))))
end
end

for f in (skip_basics ? monadic : only_basics ? basic_monadic : vcat(basic_monadic, monadic))
Expand Down
Loading