iafisher / venice

A modern, high-level, statically-typed programming language

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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].