Commit 93764f21

93764f211cfaMerged

Dmitry Bochkarev <[email protected]> · 6 months ago · 1 file · ~1 modified

Description

fix: parent-walking in poly_dispatch_return_type

Details

Commit
93764f211cfa
Parent
2e7debe55de3

spinel_codegen.rbmodifiedView file

@@ -18092,7 +18092,7 @@
1809218092 ci_s = 0
1809318093 diverges = 0
1809418094 while ci_s < @cls_names.length
18095- if cls_find_method_direct(ci_s, mname) >= 0
18095+ if cls_find_method(ci_s, mname) >= 0
1809618096 urt = cls_method_return(ci_s, mname)
1809718097 if urt != "" && urt != "string"
1809818098 diverges = 1
@@ -18120,7 +18120,7 @@
1812018120 ci = 0
1812118121 while ci < @cls_names.length
1812218122 rt = ""
18123- if cls_find_method_direct(ci, mname) >= 0
18123+ if cls_find_method(ci, mname) >= 0
1812418124 rt = cls_method_return(ci, mname)
1812518125 elsif cls_has_attr_reader(ci, mname) == 1
1812618126 # An attr_reader returns the ivar type. .