From 7089c9820d3f05d2136d388a9fb4454746bd17c2 Mon Sep 17 00:00:00 2001 From: "James P. Fairbanks" Date: Fri, 2 Aug 2024 22:15:33 -0400 Subject: [PATCH] fix typo in literal_pow overload --- src/methods.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/methods.jl b/src/methods.jl index aa760a3bf..a8b5645bc 100644 --- a/src/methods.jl +++ b/src/methods.jl @@ -139,7 +139,7 @@ function Base.inv(x::Symbolic) end function Base.literal_pow(::typeof(^), x::Symbolic, ::Val{p}) where {p} T = symtype(x) - T <: Number ? Base.:^(x, p) : error_f_symbolic(rem2pi, T) + T <: Number ? Base.:^(x, p) : error_f_symbolic(^, T) end function promote_symtype(::typeof(Base.literal_pow), _, ::Type{T}, ::Type{Val{S}}) where{T<:Number,S} return promote_symtype(^, T, typeof(S))