1
0
Fork 0
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:
Nobuyoshi Nakada 2021-01-01 00:51:12 +09:00
parent 18ea81fd2c
commit 37e2a67a74
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

@ -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