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 5ab3edd commit 8547ddbCopy full SHA for 8547ddb
src/LazyArrays.jl
@@ -58,8 +58,11 @@ include("lazysetoperations.jl")
58
include("lazyoperations.jl")
59
include("lazymacro.jl")
60
61
-# support x^2
62
-Base.to_power_type(x::LazyArray) = x
+if isdefined(Base, :to_power_type)
+ # Gone in Julia 1.12-rc1
63
+ # support x^2
64
+ Base.to_power_type(x::LazyArray) = x
65
+end
66
67
# Special broadcasting for BlockArrays.jl
68
map(::typeof(length), A::BroadcastVector{OneTo{Int},Type{OneTo}}) = A.args[1]
0 commit comments