Skip to content

Commit

Permalink
Test and fix #26127
Browse files Browse the repository at this point in the history
  • Loading branch information
mbauman authored and Keno committed Apr 27, 2018
1 parent 22ee0a6 commit bec6f14
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/broadcast.jl
Original file line number Diff line number Diff line change
Expand Up @@ -701,3 +701,10 @@ let X = zeros(2, 3)
X .= (1, 2)
@test X == [1 1 1; 2 2 2]
end

# Issue #26127: multiple splats in a fused dot-expression
let f(args...) = *(args...)
x, y, z = (1,2), 3, (4, 5)
@test f.(x..., y, z...) == broadcast(f, x..., y, z...) == 120
@test f.(x..., f.(x..., y, z...), y, z...) == broadcast(f, x..., broadcast(f, x..., y, z...), y, z...) == 120*120
end

0 comments on commit bec6f14

Please sign in to comment.