var a = [1, 2, 3] a[1.5] // expect runtime error: Subscript must be an integer.