Skip to content

Commit aeda3a7

Browse files
mamenurse
authored andcommitted
Suppress "assigned but unused variable" warnings
(cherry picked from commit 65dd50f)
1 parent 004c298 commit aeda3a7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/ruby/test_pattern_matching.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1047,6 +1047,7 @@ def test_hash_pattern
10471047
in {a: 1,}
10481048
false
10491049
in {a:,}
1050+
_a = a
10501051
true
10511052
end
10521053
end
@@ -1061,6 +1062,7 @@ def test_hash_pattern
10611062
false
10621063
in {a:
10631064
}
1065+
_a = a
10641066
true
10651067
end
10661068
end

0 commit comments

Comments
 (0)