Skip to content

Commit a335548

Browse files
authored
Fix method ambiguity error of NaNMath.pow
1 parent 982e6b1 commit a335548

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/methods.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,9 @@ end
9898
@number_methods(BasicSymbolic{<:Number}, term(f, a), term(f, a, b), skipbasics)
9999
@number_methods(BasicSymbolic{<:LiteralReal}, term(f, a), term(f, a, b), onlybasics)
100100

101+
# Fix method ambiguity issue in NaNMath >= 1.0.2
102+
NaNMath.pow(x::BasicSymbolic{<:Number}, y::Integer) = x^y
103+
101104
for f in vcat(diadic, [+, -, *, \, /, ^])
102105
@eval promote_symtype(::$(typeof(f)),
103106
T::Type{<:Number},

0 commit comments

Comments
 (0)