File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
tests/kw_fn_unlabeled_but_has_label Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -744,7 +744,7 @@ fn assign_args_to_params_kw(
744
744
return Err ( if args. kw_args . labeled . contains_key ( param_name) {
745
745
KclError :: new_argument ( KclErrorDetails :: new (
746
746
format ! (
747
- "The function does declare a parameter named '{param_name}', but this parameter doesn't use a label. Try removing the `{param_name}: `"
747
+ "The function does declare a parameter named '{param_name}', but this parameter doesn't use a label. Try removing the `{param_name} = `"
748
748
) ,
749
749
source_ranges,
750
750
) )
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ description: Error from executing kw_fn_unlabeled_but_has_label.kcl
5
5
KCL Argument error
6
6
7
7
× argument : The function does declare a parameter named 'x', but this
8
- │ parameter doesn't use a label. Try removing the `x: `
8
+ │ parameter doesn't use a label. Try removing the `x = `
9
9
╭─[1:12]
10
10
1 │ ╭─▶ fn add(@x ) {
11
11
2 │ │ return x + 1
@@ -19,7 +19,7 @@ KCL Argument error
19
19
╰─▶ KCL Argument error
20
20
21
21
× argument : The function does declare a parameter named ' x' , but this
22
- │ parameter doesn 't use a label . Try removing the `x : `
22
+ │ parameter doesn 't use a label . Try removing the `x = `
23
23
╭─[1:12]
24
24
1 │ ╭─▶ fn add(@x) {
25
25
2 │ │ return x + 1
You can’t perform that action at this time.
0 commit comments