Skip to content

Commit

Permalink
Use #expand_alias2 for generic type aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
soutaro committed Sep 4, 2023
1 parent 1a69ba6 commit c3833bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rbs/test/type_check.rb
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ def value(val, type)
when Types::Optional
Test.call(val, IS_AP, ::NilClass) || value(val, type.type)
when Types::Alias
value(val, builder.expand_alias(type.name))
value(val, builder.expand_alias2(type.name, type.args))
when Types::Tuple
Test.call(val, IS_AP, ::Array) &&
type.types.map.with_index {|ty, index| value(val[index], ty) }.all?
Expand Down

0 comments on commit c3833bb

Please sign in to comment.