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

expecting }, not IDENT, x #6164

Closed
faustinoaq opened this issue Jun 6, 2018 · 1 comment
Closed

expecting }, not IDENT, x #6164

faustinoaq opened this issue Jun 6, 2018 · 1 comment

Comments

@faustinoaq
Copy link
Contributor

faustinoaq commented Jun 6, 2018

Input:

a.each{;x}

Output:

Error: couldn't format STDIN, please report a bug including the contents of it: https://github.com/crystal-lang/crystal/issues

expecting }, not `IDENT, x`, at :1:9 (Exception)
Error opening file 'crystal' with mode 'r': No such file or directory
Error opening file 'crystal' with mode 'r': No such file or directory (Errno)
Failed to raise an exception: END_OF_STACK
[0x5564583d5fb6] ???
[0x556457bd8299] __crystal_raise +153
[0x556457bd9f8c] ???
[0x556457bea277] ???
[0x556457be3906] ???
[0x556457be2c2e] ???
[0x556457bdf9c2] ???
[0x556457bdc866] main +422
[0x7f718293806b] __libc_start_main +235
[0x556457bd529a] _start +42
[0x0] ???

Version:

Crystal 0.24.2 (2018-03-19)

LLVM: 6.0.0
Default target: x86_64-pc-linux-gnu

/cc @makenowjust 😅

@makenowjust
Copy link
Contributor

I fixed this on my local workspace. I'll write tests for this tomorrow. Please wait.

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

3 participants