mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-03-29 00:48:07 +08:00
use instance variable for proc test
This commit is contained in:
@@ -28,9 +28,9 @@ assert_equal %q{7}, proc{
|
||||
end
|
||||
|
||||
def make_closure
|
||||
a = 0
|
||||
@proc_a = 0
|
||||
make_proc{
|
||||
a+=1
|
||||
@proc_a+=1
|
||||
}
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user