# test array of nilable items - (semi-silent parse failure) # ticket:317 as float32?[] - array of float32? class NilArray def main is shared tNF as float32?[] = @[10.2f32, nil] tNF = float32?[](10) # expression works tNF[0] = 32.1f32 tNF[2] = 1.012f32 .x(tNF) def x(a as float32?[] ) is shared assert a[0] == 32.1f32 assert a[2] == 1.012f32 assert a[1] == nil assert a[9] == nil