In v11, the following compiles fine:
let f = (): array<nullable<int>> => {
[]
}
Playground link
but from v12.0.0-alpha.13 onwards it gives this error:
Did you mean to annotate the parameter type or the return type?
1) (pattern): array<nullable<int>> => {
[]
}
2) (pattern: array<nullable<int>>) => {
[]
}
Alpha 13 playground link
Beta 10 playground link