---
source: kcl/src/simulation_tests.rs
description: Error from executing kw_fn_unlabeled_but_has_label.kcl
---
KCL Semantic error

  × semantic: The function does declare a parameter named 'x', but this
  │ parameter doesn't use a label. Try removing the `x:`
   ╭─[1:7]
 1 │ ╭─▶ fn add(@x) {
 2 │ │     return x + 1
 3 │ ╰─▶ }
 4 │     
 5 │     two = add(x = 1)
   ·           ──────────
   ╰────
