trill-lang / trill

A type safe, compiled language inspired by (and written in) Swift
MIT License
275 stars 15 forks source link

Closures fail to parse #48

Open segiddins opened 7 years ago

segiddins commented 7 years ago

The following snippet should work, but right now all closures require a function signature and that signature is assumed to be inside the closure?

func main() {
  let f: () -> Void = {
    return
  }
  println(f)
}