var a = "string" a[1..2.5] // expect runtime error: Range end must be an integer.