@@ -1203,10 +1203,9 @@ end
12031203 @test o == fill (1 , 3 , 4 )
12041204
12051205 # issue #18524
1206- # m = mapslices(x->tuple(x), [1 2; 3 4], dims=1) # see variations of this below
1207- # ERROR: fatal error in type inference (type bound), https://github.com/JuliaLang/julia/issues/43064
1208- # @test m[1,1] == ([1,3],)
1209- # @test m[1,2] == ([2,4],)
1206+ m = mapslices (x-> tuple (x), [1 2 ; 3 4 ], dims= 1 ) # see variations of this below
1207+ @test m[1 ,1 ] == ([1 ,3 ],)
1208+ @test m[1 ,2 ] == ([2 ,4 ],)
12101209
12111210 r = rand (Int8, 4 ,5 ,2 )
12121211 @test vec (mapslices (repr, r, dims= (2 ,1 ))) == map (repr, eachslice (r, dims= 3 ))
@@ -1216,8 +1215,6 @@ end
12161215 # failures
12171216 @test_broken @inferred (mapslices (tuple, [1 2 ; 3 4 ], dims= 1 )) == [([1 , 3 ],) ([2 , 4 ],)]
12181217 @test_broken @inferred (mapslices (transpose, r, dims= (1 ,3 ))) == permutedims (r, (3 ,2 ,1 ))
1219- # ERROR: fatal error in type inference (type bound), https://github.com/JuliaLang/julia/issues/43064
1220- @test_broken @inferred (mapslices (x -> tuple (x), [1 2 ; 3 4 ], dims= 1 )) == [([1 , 3 ],) ([2 , 4 ],)]
12211218
12221219 # re-write, #40996
12231220 @test_throws ArgumentError mapslices (identity, rand (2 ,3 ), dims= 0 ) # previously BoundsError
0 commit comments