mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* parse.y, node.h, compile.c: change node tree structure. a purpose
of this change is to unify argument structure of method and block. this change prohibits duplicate block parameter name. new argument infromation: NODE_ARGS [m: int, o: NODE_OPT_ARG, ->] NODE_ARGS_AUX [r: ID, b: ID, ->] NODE_ARGS_AUX [Pst: id, Plen: int, init: NODE*] optarg information: NODE_OPT_ARGS [idx, expr, ->] * vm_macro.def: ditto. * gc.c: ditto. * iseq.c: ditto. * compile.h: fix debug function name. * test/ripper/test_scanner_events.rb: |_,_,foo| -> |_1,_2,foo| * test/ruby/test_lambda.rb: disalbe test temporarily. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11840 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
c5148e0383
commit
0fe72040e4
10 changed files with 251 additions and 161 deletions
|
@ -1,5 +1,7 @@
|
|||
require 'test/unit'
|
||||
|
||||
__END__
|
||||
|
||||
class TestLambdaParameters < Test::Unit::TestCase
|
||||
def test_call_simple
|
||||
assert_equal(1, ->(a){ a }.call(1))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue