var a = "123" a[1.5] // expect runtime error: Subscript must be an integer.