File tree Expand file tree Collapse file tree 1 file changed +12
-12
lines changed
Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -1081,20 +1081,20 @@ def test(x)
10811081 end
10821082
10831083 def test_opt_duparray_send_include_p_redefined
1084- assert_compiles '[:true, :false]' , %q{
1085- class Array
1086- alias_method :old_include?, :include?
1087- def include?(x)
1088- old_include?(x) ? :true : :false
1089- end
1084+ assert_compiles '[:true, :false]' , %q{
1085+ class Array
1086+ alias_method :old_include?, :include?
1087+ def include?(x)
1088+ old_include?(x) ? :true : :false
10901089 end
1090+ end
10911091
1092- def test(x)
1093- [:y, 1].include?(x)
1094- end
1095- [test(1), test("n")]
1096- } , insns : [ :opt_duparray_send ] , call_threshold : 1
1097- end
1092+ def test(x)
1093+ [:y, 1].include?(x)
1094+ end
1095+ [test(1), test("n")]
1096+ } , insns : [ :opt_duparray_send ] , call_threshold : 1
1097+ end
10981098
10991099 def test_opt_newarray_send_hash
11001100 assert_compiles 'Integer' , %q{
You can’t perform that action at this time.
0 commit comments