Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
odow committed Sep 24, 2024
1 parent 16f2c59 commit 0651ab5
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions test/rewrite_generic.jl
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,19 @@ function test_rewrite_ifelse()
2 * x
end
end
@test_rewrite begin
x = 2
y = Float64[1.0]
if x < 1
1.0
elseif length(y) == 2
2.0
elseif isempty(y)
3.0
else
4.0
end
end
return
end

Expand Down

0 comments on commit 0651ab5

Please sign in to comment.