Skip to content

Commit 0d2f6bb

Browse files
committed
more precise check for buggy at-view
1 parent 4d1a3ac commit 0d2f6bb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/runtests.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1624,8 +1624,8 @@ let X = reshape(1:24,2,3,4), Y = 4:-1:1
16241624
@test reshape(X[(1,)...,(2,)...,2:end],3) == @view X[(1,)...,(2,)...,2:end]
16251625

16261626
# the following tests fail on 0.5 because of bugs in the 0.5 Base.@view
1627-
# macro (a bugfix is scheduled to be backported from 0.6)
1628-
if VERSION < v"0.5"
1627+
# macro (a bugfix is scheduled to be backported from 0.6: julia#20247)
1628+
if !isdefined(Base, Symbol("@view")) || VERSION v"0.6.0-dev.2406"
16291629
# test macro hygiene
16301630
let size=(x,y)-> error("should not happen"), Base=nothing
16311631
@test X[1:end,2,2] == @view X[1:end,2,2]

0 commit comments

Comments
 (0)