summaryrefslogtreecommitdiffstats
path: root/sample
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
commit87a414af2bc30f33b3f99383a264f0f8e900fe00 (patch)
treece1445fe22ddf1412a7e89f9664f107fa65560b5 /sample
parent25b2cd95ee2c8e2041d4fbd36c844ba14984af1e (diff)
downloadruby-87a414af2bc30f33b3f99383a264f0f8e900fe00.tar.gz
ruby-87a414af2bc30f33b3f99383a264f0f8e900fe00.tar.xz
ruby-87a414af2bc30f33b3f99383a264f0f8e900fe00.zip
* 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: http://svn.ruby-lang.org/repos/ruby/trunk@11477 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'sample')
-rw-r--r--sample/test.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/sample/test.rb b/sample/test.rb
index 0968fa501..cf2e3a249 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