comparison libinterp/parse-tree/pt-eval.cc @ 33432:83352d86f20d

maint: Merge stable to default.
author Markus Mützel <markus.muetzel@gmx.de>
date Thu, 18 Apr 2024 21:03:51 +0200
parents 79cfa1b7a813 af2b017a5a7a
children 066a27297ba3 5fded8395daa
comparison
equal deleted inserted replaced
33429:c8332091dc73 33432:83352d86f20d
3033 3033
3034 // fcn = cdm.find_method_symbol (method, dispatch_type); 3034 // fcn = cdm.find_method_symbol (method, dispatch_type);
3035 3035
3036 cdef_class cls = cdm.find_class (dispatch_type, false); 3036 cdef_class cls = cdm.find_class (dispatch_type, false);
3037 if (cls.ok () && cls.get_name () == dispatch_type) 3037 if (cls.ok () && cls.get_name () == dispatch_type)
3038 fcn = cls.find_method (method).get_function (); 3038 {
3039 cdef_method meth = cls.find_method (method);
3040 if (meth.ok () && meth.get_name () == method)
3041 fcn = meth.get_function ();
3042 else
3043 return nullptr;
3044 }
3039 3045
3040 // If there is no classdef method, then try legacy classes. 3046 // If there is no classdef method, then try legacy classes.
3041 if (fcn.is_undefined ()) 3047 if (fcn.is_undefined ())
3042 fcn = symtab.find_method (method, dispatch_type); 3048 fcn = symtab.find_method (method, dispatch_type);
3043 } 3049 }