func test(): # Error here. Array indices must be integers. print([0, 1][true])