From 4cd10d3de8c20c387f71bee4f73a836afc26ff7a Mon Sep 17 00:00:00 2001 From: Matt Bauman Date: Tue, 24 Apr 2018 13:34:24 -0400 Subject: [PATCH] Test and fix #26127 --- test/broadcast.jl | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/broadcast.jl b/test/broadcast.jl index 35f127658ad6f..779f6371c2fed 100644 --- a/test/broadcast.jl +++ b/test/broadcast.jl @@ -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