# HG changeset patch # User Paul Boddie # Date 1488835776 -3600 # Node ID 8cae5848b19164c298543350a2ac12867563a929 # Parent b8733c35d308e07929f268a6395e03f88d4e96d9 Reverted 196988ae83cb: targets may need unwrapping when obtaining functions. diff -r b8733c35d308 -r 8cae5848b191 templates/ops.c --- a/templates/ops.c Mon Mar 06 00:31:23 2017 +0100 +++ b/templates/ops.c Mon Mar 06 22:29:36 2017 +0100 @@ -310,6 +310,8 @@ __attr (*__get_function(__ref context, __attr target))(__attr[]) { + target = __unwrap_callable(target); + /* Require null or instance contexts for functions and methods respectively, or type instance contexts for type methods. */ @@ -321,6 +323,8 @@ __attr (*__check_and_get_function(__ref context, __attr target))(__attr[]) { + target = __unwrap_callable(target); + /* Require null or instance contexts for functions and methods respectively, or type instance contexts for type methods. */