diff --git a/hscript/Interp.hx b/hscript/Interp.hx index 17b5f71b..339cda85 100644 --- a/hscript/Interp.hx +++ b/hscript/Interp.hx @@ -146,7 +146,7 @@ class Interp { /** * Custom Import resolver. It's called when an import couldn't be resolved. */ - public var importFailedCallback:Array->Null->Bool; + public var importFailedCallback:Array->Null->Null->Bool; public var customClasses:Map; public var variables:Map; @@ -978,7 +978,7 @@ class Interp { beforeAlias = claVarName; setAlias = aliasAs; - if(importFailedCallback == null || !importFailedCallback(oldSplitName, toSetName)){ + if(importFailedCallback == null || !importFailedCallback(oldSplitName, toSetName, null)){ beforeAlias = null; setAlias = null; error(EInvalidClass(oldClassName));