Experimenting with proper object type for 'any'

This commit is contained in:
Pavel Shevaev 2023-06-09 16:59:55 +03:00
parent d4ed9a50b1
commit bbbfc2c011
1 changed files with 1 additions and 1 deletions

View File

@ -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