Adding support for natively implemented interfaces

This commit is contained in:
Pavel Shevaev 2023-05-23 14:00:36 +03:00
parent e45ed9da91
commit 989900eafa
1 changed files with 11 additions and 0 deletions

View File

@ -573,6 +573,17 @@ Script_{{o.name|norm_name}}.Method_{{m.name}}.ReturnValue(frm, stack
var cl = new ClassSymbolNative(new Origin(), "{{o.name|ns_last}}",
{% if o.parent %}
types.T("{{o.parent}}"),
{% else %}
new Proxy<IType>(),
{% endif %}
{% if o.implements -%}
new List<Proxy<IType>>() {
{% for imp in o.implements %}
types.T("{{imp.name}}"),
{% endfor %}
},
{% else %}
null,
{% endif %}
{% if has_token(o, 'bhl_no_new') ~%}
//constructor is not allowed