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

formatter bug #4296

Closed
kostya opened this issue Apr 14, 2017 · 3 comments
Closed

formatter bug #4296

kostya opened this issue Apr 14, 2017 · 3 comments

Comments

@kostya
Copy link
Contributor

kostya commented Apr 14, 2017

crashed on this lines:

lib Bla
  type My = ((Int32, String) ->)
end
@bew
Copy link
Contributor

bew commented Apr 22, 2017

First it is not valid (https://carc.in/#/r/1wwo)
Error in line 2: only primitive types, pointers, structs, unions, enums and tuples are allowed in lib declarations, not Proc(Int32, String, Nil)

@RX14
Copy link
Contributor

RX14 commented Apr 22, 2017

The bug here is that code that doesn't compile emits Error:, couldn't format '/tmp/foo.cr' instead of the compiler error message.

@asterite asterite added this to the Next milestone Jun 9, 2017
@asterite
Copy link
Member

asterite commented Jun 9, 2017

The error was semantic, the syntax was OK. It was a formatter bug :-)

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

4 participants