blob: a07234d9e0e37cb6ff947918b31387887c84bb06 [file] [log] [blame] [edit]
bar = "bar"
# This gets an empty expr_opt in the parser, causing a nil to appear.
b = bar[:-2]
# Test that slices and partial slices are parsed properly
f = foo[-1:-2:-3]
f = foo[1 : :]
f = foo[: 1 :]
f = foo[: : 1]
f = foo[: :]
f = foo[ : ]