2024-11-18 16:20:32 -06:00
|
|
|
|
---
|
2025-05-14 10:04:51 -04:00
|
|
|
|
source: kcl-lib/src/simulation_tests.rs
|
2024-11-18 16:20:32 -06:00
|
|
|
|
description: Error from executing invalid_member_object.kcl
|
|
|
|
|
---
|
2024-11-25 17:28:57 -06:00
|
|
|
|
KCL Semantic error
|
|
|
|
|
|
2025-06-13 02:20:04 +12:00
|
|
|
|
× semantic: Only arrays can be indexed, but you're trying to index a number
|
2024-11-25 17:28:57 -06:00
|
|
|
|
╭─[2:5]
|
|
|
|
|
1 │ num = 999
|
|
|
|
|
2 │ x = num[3]
|
2025-02-26 19:29:59 -08:00
|
|
|
|
· ───┬──
|
|
|
|
|
· ╰── tests/invalid_member_object/input.kcl
|
2024-11-25 17:28:57 -06:00
|
|
|
|
╰────
|