Skip to content

Commit

Permalink
Fix type_construction_test.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
soutaro committed Sep 9, 2024
1 parent 6798eb0 commit 1f6156d
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions test/type_construction_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4883,7 +4883,7 @@ def foo(x)
with_standard_construction(checker, source) do |construction, typing|
construction.synthesize(source.node)

assert_empty typing.errors
assert_no_error typing
end
end
end
Expand Down Expand Up @@ -6352,7 +6352,12 @@ def yield_self: [A] () { () -> A } -> A

with_standard_construction(checker, source) do |construction, typing|
construction.synthesize(source.node)
assert_equal 1, typing.errors.size

assert_typing_error(typing, size: 1) do |errors|
assert_any!(errors) do |error|
assert_instance_of Diagnostic::Ruby::NoMethod, error
end
end
end
end
end
Expand Down

0 comments on commit 1f6156d

Please sign in to comment.