Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closures fail to parse #48

Open
segiddins opened this issue Mar 11, 2017 · 0 comments
Open

Closures fail to parse #48

segiddins opened this issue Mar 11, 2017 · 0 comments

Comments

@segiddins
Copy link
Contributor

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)
}
@segiddins segiddins changed the title Closures fail to lex Closures fail to parse Mar 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant