Skip to content

Commit 6c54a47

Browse files
committed
Deprecate with_nonreturn_void? methods
1 parent f0f1d6f commit 6c54a47

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

sig/method_types.rbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,6 @@ module RBS
5353

5454
def has_classish_type?: () -> bool
5555

56-
def with_nonreturn_void?: () -> bool
56+
%a{deprecated} def with_nonreturn_void?: () -> bool
5757
end
5858
end

sig/types.rbs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ module RBS
5454
# * The function return type is a return position (`() -> void`)
5555
# * Generic parameter is a return position (`Enumerator[Integer, void]`)
5656
#
57-
def with_nonreturn_void?: () -> bool
57+
%a{deprecated} def with_nonreturn_void?: () -> bool
5858
end
5959

6060
# t represents union of all possible types.
@@ -213,7 +213,7 @@ module RBS
213213

214214
def has_classish_type?: () -> bool
215215

216-
def with_nonreturn_void?: () -> bool
216+
%a{deprecated} def with_nonreturn_void?: () -> bool
217217
end
218218

219219
class Interface
@@ -452,7 +452,7 @@ module RBS
452452

453453
def has_classish_type?: () -> bool
454454

455-
def with_nonreturn_void?: () -> bool
455+
%a{deprecated} def with_nonreturn_void?: () -> bool
456456

457457
def ==: (untyped) -> bool
458458

@@ -495,7 +495,7 @@ module RBS
495495

496496
def has_classish_type?: () -> bool
497497

498-
def with_nonreturn_void?: () -> bool
498+
%a{deprecated} def with_nonreturn_void?: () -> bool
499499

500500
# Returns `?`
501501
def param_to_s: () -> String

0 commit comments

Comments
 (0)