mirror of
https://github.com/ruby/ruby.git
synced 2026-01-27 04:24:23 +00:00
Method ID of call and fcall can be const not only ident
This commit is contained in:
parent
18ea81fd2c
commit
37e2a67a74
@ -101,7 +101,7 @@ def collect_builtin base, tree, name, bs, inlines, locals = nil
|
||||
_, recv, sep, mid, (_, args) = tree
|
||||
end
|
||||
if mid
|
||||
raise "unknown sexp: #{mid.inspect}" unless mid.first == :@ident
|
||||
raise "unknown sexp: #{mid.inspect}" unless %i[@ident @const].include?(mid.first)
|
||||
_, mid, (lineno,) = mid
|
||||
if recv
|
||||
func_name = nil
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user