Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions lib/rbs/unit_test/type_assertions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -354,11 +354,12 @@ def assert_type(type, value)
end

def allow_non_simple_method_type()
previous = @allows_non_simple_method_type
begin
@allows_non_simple_method_type = true
yield
rescue
@allows_non_simple_method_type = false
ensure
@allows_non_simple_method_type = previous
end
end

Expand Down
Loading