If the compiler knows a variable is nil, the (very cool!) ?.[] operator fails.
Examples:
The following expression fails on compilation:
The error is:
type <nil>[int] is undefined (4:6)
This one, however, succeed:
let x = 3;
let arr = x < 4 ? nil : [1];
arr?.[0]