var a = [1, 2, 3] a[-5] // expect runtime error: Subscript out of bounds.