From bbbfc2c011c8509f0d99d882e924424cc386a56e Mon Sep 17 00:00:00 2001 From: Pavel Shevaev Date: Fri, 9 Jun 2023 16:59:55 +0300 Subject: [PATCH] Experimenting with proper object type for 'any' --- tpl/macro.twig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tpl/macro.twig b/tpl/macro.twig index 6c18610..e048f7b 100644 --- a/tpl/macro.twig +++ b/tpl/macro.twig @@ -449,7 +449,7 @@ Script_{{o.name|norm_name}}.Method_{{m.name}}.ReturnValue(frm, stack {%- macro native2val(type, native, value) -%} {# any special case #} {%- if type == 'any' -%} - {{value}} = {{native}} + {{value}}.SetObj({{native}}, Types.Any) {# bhl functor special case #} {%- elseif type == "ConfScript" -%} {{value}}.obj = {{native}}.fct.obj