1
0
Fork 0
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:
Hiroshi SHIBATA 2019-06-01 15:20:21 +03:00
parent 3c77ef9adc
commit 464e55f1d0
No known key found for this signature in database
GPG key ID: F9CF13417264FAC2
3 changed files with 10 additions and 10 deletions

View file

@ -16,7 +16,7 @@ class TestIter::YieldBlock < Test::Unit::TestCase
block.call {}
end
def call_lambda(&block)
block.call &->{}
block.call(&->{})
end
end

View file

@ -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

View file

@ -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