---
source: kcl/src/simulation_tests.rs
description: Error from executing array_index_oob.kcl
---
KCL UndefinedValue error

  × undefined value: The array doesn't have any item at index 0
   ╭─[2:5]
 1 │ arr = []
 2 │ x = arr[0]
   ·     ──────
   ╰────
