mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Method ID of call and fcall can be const not only ident
This commit is contained in:
parent
18ea81fd2c
commit
37e2a67a74
1 changed files with 1 additions and 1 deletions
|
@ -101,7 +101,7 @@ def collect_builtin base, tree, name, bs, inlines, locals = nil
|
||||||
_, recv, sep, mid, (_, args) = tree
|
_, recv, sep, mid, (_, args) = tree
|
||||||
end
|
end
|
||||||
if mid
|
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
|
_, mid, (lineno,) = mid
|
||||||
if recv
|
if recv
|
||||||
func_name = nil
|
func_name = nil
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue