Skip to content

Commit

Permalink
Passing an unused block
Browse files Browse the repository at this point in the history
  • Loading branch information
soutaro committed Dec 26, 2024
1 parent b22ad44 commit 0593bdc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/type_factory_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def test_type
assert_equal "?{ (Integer) -> void }", type.block.to_s
end

factory.type(RBS::Types::Variable.new(name: :T, location: nil)) do |type|
factory.type(RBS::Types::Variable.new(name: :T, location: nil)).yield_self do |type|
assert_instance_of Types::Var, type
assert_equal :T, type.name
end
Expand Down

0 comments on commit 0593bdc

Please sign in to comment.