summaryrefslogtreecommitdiff
path: root/sample/test.rb
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-01-05 03:43:12 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-01-05 03:43:12 +0000
commitc5bd0c8e3bf602e082cfd8f95bc28b06aeea2694 (patch)
treece1445fe22ddf1412a7e89f9664f107fa65560b5 /sample/test.rb
parentf189294d04ba8c05a03964c622327369c0773829 (diff)
* compile.c (iseq_compile_each, set_block_local_tbl) :
support NODE_LAMBDA (partly). * sample/test.rb : restore test of NODE_LAMBDA * test/ruby/test_lambda.rb : ditto git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11477 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'sample/test.rb')
-rw-r--r--sample/test.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/sample/test.rb b/sample/test.rb
index 0968fa5015..cf2e3a2493 100644
--- a/sample/test.rb
+++ b/sample/test.rb
@@ -1101,8 +1101,7 @@ def proc_return1
end
test_ok(proc_return1() == 43)
def proc_return2
- #! ->{return 42}.call+1
- lambda{return 42}.call+1
+ ->{return 42}.call+1
end
test_ok(proc_return2() == 43)
def proc_return3