Files
pplus-core/mojo/probes/list-index-oob.mojo
T
2026-10-05 03:03:38 +00:00

8 lines
174 B
Mojo

# probe: what happens when a List is indexed past its end at run time?
def main():
var l = [1, 2, 3]
var i = 3
print("before")
print(l[i])
print("after")