From fc67091fc8dc4c7122499cd0d287cd34ff01bf30 Mon Sep 17 00:00:00 2001 From: Yusuke Endoh Date: Thu, 4 Apr 2024 13:23:52 +0900 Subject: Prevent "ambiguous first argument" warnings --- test/ruby/test_string.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/ruby/test_string.rb') diff --git a/test/ruby/test_string.rb b/test/ruby/test_string.rb index 0dae1c5a8e..9ff3791e7d 100644 --- a/test/ruby/test_string.rb +++ b/test/ruby/test_string.rb @@ -3620,11 +3620,11 @@ CODE assert_predicate chilled_string.clone, :frozen? # @+ treat the original string as frozen - assert_not_predicate +chilled_string, :frozen? + assert_not_predicate(+chilled_string, :frozen?) assert_not_same chilled_string, +chilled_string # @- the original string as mutable - assert_predicate -chilled_string, :frozen? + assert_predicate(-chilled_string, :frozen?) assert_not_same chilled_string, -chilled_string end -- cgit v1.2.3