Bug or feature of the NamedTuple constuctor

julia> NamedTuple{(:a,:b)}((; b=2, a=1))
(a = 1, b = 2)

julia> NamedTuple{(:a,:b), NTuple{2,Int}}((; b=2, a=1))
(a = 2, b = 1)

Curious, is not it?

2 Likes

Bug is fixed on master (if link breaks, Github issue #44132 fixes #44086)

5 Likes