Move some more functions to be declared in KCL (#6856)
* Move the leg functions to KCL Signed-off-by: Nick Cameron <nrc@ncameron.org> * Move array functions to KCL Signed-off-by: Nick Cameron <nrc@ncameron.org> * Move clone to KCL Signed-off-by: Nick Cameron <nrc@ncameron.org> * Add a function type Signed-off-by: Nick Cameron <nrc@ncameron.org> --------- Signed-off-by: Nick Cameron <nrc@ncameron.org>
This commit is contained in:
@ -4,11 +4,20 @@ description: Error from executing argument_error.kcl
|
||||
---
|
||||
KCL Semantic error
|
||||
|
||||
× semantic: This function expected the input argument to be of type
|
||||
│ Vec<KclValue> but it's actually of type Function
|
||||
╭─[5:5]
|
||||
× semantic: f requires a value with type `Fn`, but found array (list)
|
||||
╭─[5:1]
|
||||
4 │
|
||||
5 │ map(f, f = [0, 1])
|
||||
· ┬
|
||||
· ╰── tests/argument_error/input.kcl
|
||||
· ─────────┬────────┬
|
||||
· │ ╰── tests/argument_error/input.kcl
|
||||
· ╰── tests/argument_error/input.kcl
|
||||
╰────
|
||||
╰─▶ KCL Semantic error
|
||||
|
||||
× semantic: f requires a value with type `Fn`, but found array (list)
|
||||
╭─[5:12]
|
||||
4 │
|
||||
5 │ map(f, f = [0, 1])
|
||||
· ───┬──
|
||||
· ╰── tests/argument_error/input.kcl
|
||||
╰────
|
||||
|
Reference in New Issue
Block a user