# Duplicated keyword arguments and splats

**URL:** <https://discourse.julialang.org/t/duplicated-keyword-arguments-and-splats/87745>\
**Category:** General Usage\
**Created:** [September 24, 2022, 3:12pm UTC](https://discourse.julialang.org/t/duplicated-keyword-arguments-and-splats/87745 "2022-09-24T15:12:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pdeffebach](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pdeffebach/32/10320_2.png) [@pdeffebach](https://discourse.julialang.org/u/pdeffebach)\
**Post date:** [September 24, 2022, 3:12pm UTC](https://discourse.julialang.org/t/duplicated-keyword-arguments-and-splats/87745/1 "2022-09-24T15:12:41Z")

</div>

Is this expected? Keyword arguments get de-duplicated with splatting, but not when written explicitely.

```julia
julia> function foo(; a)
           1
       end
foo (generic function with 1 method)

julia> foo(; (a=1,)...)
1

julia> foo(; (a=1,)..., a = 2)
1

julia> foo(; a=1, a = 2)
ERROR: syntax: keyword argument "a" repeated in call to "foo" around REPL[28]:1
Stacktrace:
 [1] top-level scope
   @ REPL[28]:100:

```
