* Add test showing unhelpful error message * Add display of array element types in error messages * Change to prose description * Update output
26 lines
915 B
Plaintext
26 lines
915 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 array of
|
||
│ number(default units), number(default units) with 2 values
|
||
╭─[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
|
||
│ array of number(default units), number(default units) with 2 values
|
||
╭─[5:12]
|
||
4 │
|
||
5 │ map(f, f = [0, 1])
|
||
· ───┬──
|
||
· ╰── tests/argument_error/input.kcl
|
||
╰────
|