From 2450fd0060f73d0e904fc572f39b1ed330dfbebc Mon Sep 17 00:00:00 2001 From: Pavel Shevaev Date: Mon, 11 Sep 2023 14:17:48 +0300 Subject: [PATCH] Improving support for native enum types --- tpl/macro.twig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tpl/macro.twig b/tpl/macro.twig index bb114db..2fc1706 100644 --- a/tpl/macro.twig +++ b/tpl/macro.twig @@ -562,7 +562,7 @@ Script_{{o.name|norm_name}}.Method_{{m.name}}.ReturnValue(frm, stack { var en = new EnumSymbolNative(new Origin(), "{{o.name|ns_last}}" #if !BHL_FRONT - , typeof({{o.name}}) + , typeof({{token_or(o, 'bhl_native_class', o.name)}}) #else , null #endif