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

single line block formatting causes syntax error #16

Open
kt97679 opened this issue Oct 1, 2018 · 0 comments
Open

single line block formatting causes syntax error #16

kt97679 opened this issue Oct 1, 2018 · 0 comments

Comments

@kt97679
Copy link

kt97679 commented Oct 1, 2018

$ cat test.rb 
a = [11, 22].map do |x|
    x.to_s
end
puts(a.join)
$ ./tinyrb test.rb                                                                                                                                                                                                                                   
1122
$ cat test.rb 
a = [11, 22].map do |x| x.to_s; end
puts(a.join)
$ ./tinyrb test.rb 
SyntaxError: SyntaxError in test.rb at line 1 near token 'x' before text "a = [11, 22].map do |x| x"
$ 
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