@@ -251,7 +251,7 @@ def with_nonreturn_void?
251251 # `void` in immediate generics parameter is allowed
252252 false
253253 else
254- type . with_nonreturn_void? # steep:ignore DeprecatedReference
254+ type . with_nonreturn_void?
255255 end
256256 end
257257 end
@@ -530,7 +530,7 @@ def has_classish_type?
530530 end
531531
532532 def with_nonreturn_void?
533- each_type . any? { |type | type . with_nonreturn_void? } # steep:ignore DeprecatedReference
533+ each_type . any? { |type | type . with_nonreturn_void? }
534534 end
535535 end
536536
@@ -648,7 +648,7 @@ def has_classish_type?
648648 end
649649
650650 def with_nonreturn_void?
651- each_type . any? { |type | type . with_nonreturn_void? } # steep:ignore DeprecatedReference
651+ each_type . any? { |type | type . with_nonreturn_void? }
652652 end
653653 end
654654
@@ -734,7 +734,7 @@ def has_classish_type?
734734 end
735735
736736 def with_nonreturn_void?
737- each_type . any? { |type | type . with_nonreturn_void? } # steep:ignore DeprecatedReference
737+ each_type . any? { |type | type . with_nonreturn_void? }
738738 end
739739 end
740740
@@ -825,7 +825,7 @@ def has_classish_type?
825825 end
826826
827827 def with_nonreturn_void?
828- each_type . any? { |type | type . with_nonreturn_void? } # steep:ignore DeprecatedReference
828+ each_type . any? { |type | type . with_nonreturn_void? }
829829 end
830830 end
831831
@@ -908,7 +908,7 @@ def has_classish_type?
908908 end
909909
910910 def with_nonreturn_void?
911- each_type . any? { |type | type . with_nonreturn_void? } # steep:ignore DeprecatedReference
911+ each_type . any? { |type | type . with_nonreturn_void? }
912912 end
913913 end
914914
@@ -1278,13 +1278,13 @@ def has_classish_type?
12781278 end
12791279
12801280 def with_nonreturn_void?
1281- if each_param . any? { |param | param . type . with_nonreturn_void? } # steep:ignore DeprecatedReference
1281+ if each_param . any? { |param | param . type . with_nonreturn_void? }
12821282 true
12831283 else
12841284 if return_type . is_a? ( Bases ::Void )
12851285 false
12861286 else
1287- return_type . with_nonreturn_void? # steep:ignore DeprecatedReference
1287+ return_type . with_nonreturn_void?
12881288 end
12891289 end
12901290 end
@@ -1407,6 +1407,12 @@ def ==(other)
14071407 other . self_type == self_type
14081408 end
14091409
1410+ alias eql? ==
1411+
1412+ def hash
1413+ self . class . hash ^ type . hash ^ required . hash ^ self_type . hash
1414+ end
1415+
14101416 def to_json ( state = nil )
14111417 {
14121418 type : type ,
@@ -1557,11 +1563,11 @@ def has_classish_type?
15571563 end
15581564
15591565 def with_nonreturn_void?
1560- if type . with_nonreturn_void? || self_type &.with_nonreturn_void? # steep:ignore DeprecatedReference
1566+ if type . with_nonreturn_void? || self_type &.with_nonreturn_void?
15611567 true
15621568 else
15631569 if block = block ( )
1564- block . type . with_nonreturn_void? || block . self_type &.with_nonreturn_void? || false # steep:ignore DeprecatedReference
1570+ block . type . with_nonreturn_void? || block . self_type &.with_nonreturn_void? || false
15651571 else
15661572 false
15671573 end
0 commit comments