Skip to content

Commit

Permalink
try to fix runtime_generic
Browse files Browse the repository at this point in the history
  • Loading branch information
gtrias committed Sep 10, 2024
1 parent a47c6d1 commit 006fd7f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/runtime_generic.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ module RuntimeGeneric
extend T::Sig
include T::Generic

# NOTE: This is needed in order to make tapioca compatible with RuntimeGeneric
def self.extended(base)
base.extend(T::Generic)
end
Expand Down Expand Up @@ -49,7 +50,8 @@ def [](inner_type)
end

def type_member(variance = :invariant, &blk)
MyTypeMember.new(variance, &blk)
super

MyTypeMember.new(variance, &blk)
end
end

0 comments on commit 006fd7f

Please sign in to comment.