lib/rbs/variance_calculator.rb in rbs-3.0.3 vs lib/rbs/variance_calculator.rb in rbs-3.0.4
- old
+ new
@@ -133,10 +133,10 @@
env: env,
location: type.location)
type_params = case type
when Types::ClassInstance
- env.class_decls[type.name].type_params
+ env.class_decls[env.normalize_module_name(type.name)].type_params
when Types::Interface
env.interface_decls[type.name].decl.type_params
when Types::Alias
env.type_alias_decls[type.name].decl.type_params
end