Files
pplus-library/mojo/probes/list-index-oob.mojo
T
2026-10-06 09:57:04 -04: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")