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

A bug in crystal playground: cannot yield when pass in one parameter #4526

Closed
akiicat opened this issue Jun 7, 2017 · 0 comments
Closed

Comments

@akiicat
Copy link
Contributor

akiicat commented Jun 7, 2017

def foo(x)
  yield x
end
foo(3) do |a|
  a
end

It'll raise syntax error in crystal playground

Syntax error in play:2: expecting identifier 'end', not 'do'

Crystal 0.22.0 (2017-04-20) LLVM 4.0.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants