lib/rbs/constant_table.rb in rbs-1.1.1 vs lib/rbs/constant_table.rb in rbs-1.2.0

- old
+ new

@@ -54,10 +54,13 @@ name_to_constant(TypeName.new(name: head, namespace: Namespace.root)) when context == [Namespace.root] name_to_constant(TypeName.new(name: head, namespace: Namespace.root)) else resolve_constant_reference_context(head, context: context) || - resolve_constant_reference_inherit(head, scopes: constant_scopes(context.first.to_type_name)) + context.first.yield_self do |first_contet| + raise unless first_contet + resolve_constant_reference_inherit(head, scopes: constant_scopes(first_contet.to_type_name)) + end end tail.inject(head_constant) do |constant, name| if constant resolve_constant_reference_inherit(