mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Ignore warnings about argument prefix with operator symbol.
This commit is contained in:
parent
3c77ef9adc
commit
464e55f1d0
3 changed files with 10 additions and 10 deletions
|
@ -16,7 +16,7 @@ class TestIter::YieldBlock < Test::Unit::TestCase
|
|||
block.call {}
|
||||
end
|
||||
def call_lambda(&block)
|
||||
block.call &->{}
|
||||
block.call(&->{})
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -17,9 +17,9 @@ class TestLazyEnumerator < Test::Unit::TestCase
|
|||
@enum.each do |v|
|
||||
@current = v
|
||||
if v.is_a? Enumerable
|
||||
yield *v
|
||||
yield(*v)
|
||||
else
|
||||
yield v
|
||||
yield(v)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -2096,7 +2096,7 @@ class TestRefinement < Test::Unit::TestCase
|
|||
end
|
||||
}
|
||||
def call
|
||||
ToProc.call &self
|
||||
ToProc.call(&self)
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -2111,7 +2111,7 @@ class TestRefinement < Test::Unit::TestCase
|
|||
}
|
||||
|
||||
def call
|
||||
ToProc.call &self
|
||||
ToProc.call(&self)
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -2127,14 +2127,14 @@ class TestRefinement < Test::Unit::TestCase
|
|||
}
|
||||
|
||||
def call
|
||||
ToProc.call &self
|
||||
ToProc.call(&self)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
class NonProc
|
||||
def call
|
||||
ToProc.call &self
|
||||
ToProc.call(&self)
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -2144,7 +2144,7 @@ class TestRefinement < Test::Unit::TestCase
|
|||
end
|
||||
|
||||
def call
|
||||
ToProc.call &self
|
||||
ToProc.call(&self)
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -2163,7 +2163,7 @@ class TestRefinement < Test::Unit::TestCase
|
|||
}
|
||||
|
||||
def call
|
||||
ToProc.call &self
|
||||
ToProc.call(&self)
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -2182,7 +2182,7 @@ class TestRefinement < Test::Unit::TestCase
|
|||
}
|
||||
|
||||
def call
|
||||
ToProc.call &self
|
||||
ToProc.call(&self)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue