Skip to content

Commit bb0a37f

Browse files
committed
Fix unhandled Vararg
1 parent 4a3cc60 commit bb0a37f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/compiler/transform/canonicalize.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,7 @@ function promote_scalar_type(@nospecialize(T))
194194
T <: Number && return Tile{T, Tuple{}}
195195
if T <: Tuple
196196
params = T.parameters
197+
any(P -> P isa Core.TypeofVararg, params) && return nothing
197198
any_promoted = false
198199
new_params = map(params) do P
199200
P = CC.widenconst(P)

0 commit comments

Comments
 (0)