Fix import extend class (#4)

* Fix import extend class

yea

* Update Interp.hx

* Fix issues with compiling

* Improved extend Errors

---------

Co-authored-by: NeeEoo <NeeEoo@users.noreply.github.com>
This commit is contained in:
Redar13
2024-04-23 00:01:43 +02:00
committed by GitHub
co-authored by NeeEoo
parent f6402ac638
commit b96e6c8149
2 changed files with 14 additions and 2 deletions
+3
View File
@@ -25,6 +25,9 @@ class CustomClassHandler implements IHScriptCustomConstructor {
interp.errorHandler = ogInterp.errorHandler;
var cl = extend == null ? TemplateClass : Type.resolveClass('${extend}_HSX');
if(cl == null)
ogInterp.error(EInvalidClass(extend));
var _class = Type.createInstance(cl, args);
var __capturedLocals = ogInterp.duplicate(ogInterp.locals);