1.1 --- a/templates/ops.c Mon Mar 06 00:31:23 2017 +0100
1.2 +++ b/templates/ops.c Mon Mar 06 22:29:36 2017 +0100
1.3 @@ -310,6 +310,8 @@
1.4
1.5 __attr (*__get_function(__ref context, __attr target))(__attr[])
1.6 {
1.7 + target = __unwrap_callable(target);
1.8 +
1.9 /* Require null or instance contexts for functions and methods respectively,
1.10 or type instance contexts for type methods. */
1.11
1.12 @@ -321,6 +323,8 @@
1.13
1.14 __attr (*__check_and_get_function(__ref context, __attr target))(__attr[])
1.15 {
1.16 + target = __unwrap_callable(target);
1.17 +
1.18 /* Require null or instance contexts for functions and methods respectively,
1.19 or type instance contexts for type methods. */
1.20