* Improve docs around PI Signed-off-by: Nick Cameron <nrc@ncameron.org> * Refactor and polish type error messages Signed-off-by: Nick Cameron <nrc@ncameron.org> * Add suggestion to fix unknown numbers error Signed-off-by: Nick Cameron <nrc@ncameron.org> * Don't warn so often about unknown units Signed-off-by: Nick Cameron <nrc@ncameron.org> --------- Signed-off-by: Nick Cameron <nrc@ncameron.org>
26 lines
889 B
Plaintext
26 lines
889 B
Plaintext
---
|
||
source: kcl-lib/src/simulation_tests.rs
|
||
description: Error from executing argument_error.kcl
|
||
---
|
||
KCL Semantic error
|
||
|
||
× semantic: f requires a value with type `fn(any): any`, but found an array
|
||
│ of `number`, `number` (with type `[any; 2]`).
|
||
╭─[5:1]
|
||
4 │
|
||
5 │ map(f, f = [0, 1])
|
||
· ─────────┬────────┬
|
||
· │ ╰── tests/argument_error/input.kcl
|
||
· ╰── tests/argument_error/input.kcl
|
||
╰────
|
||
╰─▶ KCL Semantic error
|
||
|
||
× semantic: f requires a value with type `fn(any): any`, but found an
|
||
│ array of `number`, `number` (with type `[any; 2]`).
|
||
╭─[5:12]
|
||
4 │
|
||
5 │ map(f, f = [0, 1])
|
||
· ───┬──
|
||
· ╰── tests/argument_error/input.kcl
|
||
╰────
|