1.1 --- a/templates/ops.c Sat Mar 25 21:58:51 2017 +0100
1.2 +++ b/templates/ops.c Sat Mar 25 22:00:14 2017 +0100
1.3 @@ -335,11 +335,16 @@
1.4 or type instance contexts for type methods. */
1.5
1.6 if (__ISNULL(context) || __is_instance(__VALUE(context)) || __type_method_invocation(context, target))
1.7 - return __load_via_object(__VALUE(target), __fn__).fn;
1.8 + return __get_function_member(target);
1.9 else
1.10 return __unbound_method;
1.11 }
1.12
1.13 +__attr (*__get_function_member(__attr target))()
1.14 +{
1.15 + return __load_via_object(__VALUE(target), __fn__).fn;
1.16 +}
1.17 +
1.18 __attr (*__check_and_get_function(__attr context, __attr target))()
1.19 {
1.20 return __check_and_get_function_unwrapped(context, __unwrap_callable(target));