Module: T::Utils::Private::PrivateCoercePatch
- Included in:
- T::Utils::Private
- Defined in:
- lib/tapioca/sorbet_ext/generic_name_patch.rb
Instance Method Summary collapse
Instance Method Details
#coerce_and_check_module_types(val, check_val, check_module_type) ⇒ Object
89 90 91 92 93 94 95 96 97 |
# File 'lib/tapioca/sorbet_ext/generic_name_patch.rb', line 89 def coerce_and_check_module_types(val, check_val, check_module_type) if val.is_a?(Tapioca::TypeVariableModule) val.coerce_to_type_variable elsif val.respond_to?(:__tapioca_override_type) val.__tapioca_override_type else super end end |