var a = "123" a[0..-4] // expect runtime error: Range end out of bounds.