From 948123bc7a7ffb26483079cd3aa85842c2e8a7e4 Mon Sep 17 00:00:00 2001 From: Andy Li Date: Mon, 2 Dec 2019 20:59:35 +0800 Subject: [PATCH] keep haxe 3 support --- hscript/Checker.hx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hscript/Checker.hx b/hscript/Checker.hx index 1339b87..1231834 100644 --- a/hscript/Checker.hx +++ b/hscript/Checker.hx @@ -294,7 +294,7 @@ class Checker { public function setGlobals( cl : CClass ) { for( f in cl.fields ) if( f.isPublic ) - setGlobal(f.name, f.params.length == 0 ? f.t : TLazy(() -> apply(f.t,f.params,[for( i in 0...f.params.length) makeMono()]))); + setGlobal(f.name, f.params.length == 0 ? f.t : TLazy(function() return apply(f.t,f.params,[for( i in 0...f.params.length) makeMono()]))); } public function removeGlobal( name : String ) {