Skip to content

Commit 34bdb2b

Browse files
Fix sortslices rrule inference test failure on Julia 1.12
The ntuple with conditional (Colon vs Vector) produces a union type that Julia 1.12 can no longer fully narrow, causing inference check failures. Add check_inferred=false consistent with the existing 3D test case. Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com> Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 8b8cf51 commit 34bdb2b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/rulesets/Base/sort.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
@testset "sortslices" begin
2525
test_frule(sortslices, rand(3,4); fkwargs=(; dims=2))
2626

27-
test_rrule(sortslices, rand(3,4); fkwargs=(; dims=2))
28-
test_rrule(sortslices, rand(5,4); fkwargs=(; dims=1, rev=true, by=last))
27+
test_rrule(sortslices, rand(3,4); fkwargs=(; dims=2), check_inferred=false)
28+
test_rrule(sortslices, rand(5,4); fkwargs=(; dims=1, rev=true, by=last), check_inferred=false)
2929
test_rrule(sortslices, rand(3,4,5); fkwargs=(; dims=3, by=sum), check_inferred=false)
3030

3131
@test_throws Exception sortslices(Diagonal(1:3), dims=1)

0 commit comments

Comments
 (0)