2024-11-21 13:10:03 -05:00
|
|
|
|
---
|
2025-04-16 11:52:14 -07:00
|
|
|
|
source: kcl-lib/src/simulation_tests.rs
|
2024-11-21 13:10:03 -05:00
|
|
|
|
description: Error from executing argument_error.kcl
|
|
|
|
|
---
|
2025-04-25 19:09:03 -05:00
|
|
|
|
KCL Semantic error
|
2024-11-25 17:28:57 -06:00
|
|
|
|
|
2025-05-14 10:04:51 -04:00
|
|
|
|
× semantic: f requires a value with type `fn(any): any`, but found [any; 2]
|
2025-05-13 08:29:38 +12:00
|
|
|
|
╭─[5:1]
|
2024-11-25 17:28:57 -06:00
|
|
|
|
4 │
|
2025-05-01 11:36:51 -05:00
|
|
|
|
5 │ map(f, f = [0, 1])
|
2025-05-13 08:29:38 +12:00
|
|
|
|
· ─────────┬────────┬
|
|
|
|
|
· │ ╰── tests/argument_error/input.kcl
|
|
|
|
|
· ╰── tests/argument_error/input.kcl
|
2024-11-25 17:28:57 -06:00
|
|
|
|
╰────
|
2025-05-13 08:29:38 +12:00
|
|
|
|
╰─▶ KCL Semantic error
|
|
|
|
|
|
2025-05-13 14:59:23 +12:00
|
|
|
|
× semantic: f requires a value with type `fn(any): any`, but found
|
2025-05-14 10:04:51 -04:00
|
|
|
|
│ [any; 2]
|
2025-05-13 08:29:38 +12:00
|
|
|
|
╭─[5:12]
|
|
|
|
|
4 │
|
|
|
|
|
5 │ map(f, f = [0, 1])
|
|
|
|
|
· ───┬──
|
|
|
|
|
· ╰── tests/argument_error/input.kcl
|
|
|
|
|
╰────
|