Skip to content

Commit d1b62d8

Browse files
committed
use %a{implicitly-returns-nil} on [] for now
1 parent 054c857 commit d1b62d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/hash.rbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -646,7 +646,7 @@ class Hash[unchecked out K, unchecked out V]
646646
# h = {foo: 0, bar: 1, baz: 2}
647647
# h[:nosuch] # => nil
648648
#
649-
def []: (_Key key) -> V?
649+
def []: %a{implicitly-returns-nil} (_Key key) -> V
650650

651651
# <!--
652652
# rdoc-file=hash.c

0 commit comments

Comments
 (0)