Type inference for empty lists in return statements
iafisher opened this issue · comments
e.g.,
func empty() -> [int] {
return []
}
The compiler should be able to infer that the type of the empty list is [int]
.
A modern, high-level, statically-typed programming language
iafisher opened this issue · comments
e.g.,
func empty() -> [int] {
return []
}
The compiler should be able to infer that the type of the empty list is [int]
.