Files
pplus-library/mojo/probes/list-slice-end-oob.mojo
alexm 568474d52f
Test (in pplus-core) / in-core (push) Failing after 28m44s
Initial commit
2026-11-12 22:23:48 -05:00

9 lines
240 B
Mojo

# probe: what happens when a List is sliced past its end (List[Int](l[1:9]) on a List of three)?
def main():
var l: List[Int] = [1, 2, 3]
var hi = 9
print("before")
var m = List[Int](l[1:hi])
print(m)
print("after")