title: InvalidSliceExpr layout: article

InvalidSliceExpr occurs when a three-index slice expression (a[x:y:z]) is
applied to a string.

Example:
 var s = "hello"
 var x = s[1:2:3]