We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
SyntaxError
_
This code raises a SyntaxError:
it "adds the entries from other, overwriting duplicate keys. Returns self" do h = { _1: 'a', _2: '3' } end
This code does not:
h = { _1: 'a', _2: '3' }
And neither does this code:
it "adds the entries from other, overwriting duplicate keys. Returns self" do end
$ cat crash.rb it "adds the entries from other, overwriting duplicate keys. Returns self" do h = { _1: 'a', _2: '3' } end $ cargo run --bin airb -q artichoke 0.1.0-pre.0 (2022-08-14 revision 6111) [x86_64-apple-darwin] [rustc 1.63.0 (4b91a6ea7 2022-08-08) on x86_64-apple-darwin] >>> require 'crash' Traceback (most recent call last): 2: from (airb):1 1: from (airb):1:in require SyntaxError (syntax error) >>> h = { _1: 'a', _2: '3' } => {:_1=>"a", :_2=>"3"}
The text was updated successfully, but these errors were encountered:
7c0f7e2
parse.y: allow NUMPARAMs (e.g. _1) as hash keys; fix mruby#5785
2f3b74e
fac1543
fafafbd
858f4e6
No branches or pull requests
This code raises a
SyntaxError
:This code does not:
And neither does this code:
Artichoke REPL (mruby 3.1.0)
The text was updated successfully, but these errors were encountered: