Skip to content

Commit

Permalink
prototype rb:
Browse files Browse the repository at this point in the history
Co-authored-by: Masataka Pocke Kuwabara <[email protected]>
  • Loading branch information
tk0miya and pocke authored Jun 15, 2023
1 parent 4b5e35b commit a17c448
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rbs/prototype/rb.rb
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ def process(node, decls:, comments:, context:)

decls.push member unless decls.include?(member)

new_ctx = Context.initial.tap { |ctx| ctx.singleton = kind == :singleton }
new_ctx = context.dup.tap { |ctx| ctx.singleton = kind == :singleton }
each_node def_body.children do |child|
process child, decls: decls, comments: comments, context: new_ctx
end
Expand Down

0 comments on commit a17c448

Please sign in to comment.