public void BlockArity1() {
TestOutput(@"
puts '== -4'
p Proc.new{|(a,b,c,*)|}.arity
puts '== -2'
p Proc.new{|(a,b,c,*),*|}.arity
puts '== -1'
p Proc.new{|(*)|}.arity
p Proc.new{}.arity
p Proc.new{|*|}.arity
puts '== 0'
p Proc.new{||}.arity
puts '== 1'
p Proc.new{|x|}.arity
p Proc.new{|x,|}.arity
p Proc.new{|((x,y))|}.arity
p Proc.new{|(*),|}.arity
p Proc.new{|(x,*),|}.arity
puts '== 2'
p Proc.new{|x,y|}.arity
p Proc.new{|x,y,|}.arity
p Proc.new{|x,y,|}.arity
p Proc.new{|(x,y)|}.arity
puts '== 3'
p Proc.new{|x,y,z|}.arity
p Proc.new{|x,y,z,|}.arity
p Proc.new{|(x,y,z)|}.arity
", @"
== -4
1
== -2
-2
== -1
1
0
-1
== 0
0
== 1
1
1
1
1
1
== 2
2
2
2
1
== 3
3
3
1
");
}