Skip to content

Instantly share code, notes, and snippets.

@whitequark whitequark/example.sh forked from mbj/example.sh
Last active Aug 29, 2015

Embed
What would you like to do?
# 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
# 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
You can’t perform that action at this time.