-
-
Save whitequark/a0fb32f4ef549140769c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# chruby-exec 2.1.2 -- ruby y.rb | |
{:a=>:foo} | |
# chruby-exec 2.1.3 -- ruby y.rb | |
y.rb:2: syntax error, unexpected modifier_if | |
a: if true; :foo; end | |
^ | |
y.rb:2: syntax error, unexpected keyword_end, expecting end-of-input |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# not that I'd like this code. But its valid on 2.1.2 and invalid on 2.1.3. Found via mutant. | |
p( | |
a: if true; :foo; end | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment