Explorar o código

[lua] one more Rex tweak

Justin Donaldson %!s(int64=8) %!d(string=hai) anos
pai
achega
fa31c5f451
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  1. 1 2
      std/lua/lib/lrexlib/Rex.hx

+ 1 - 2
std/lua/lib/lrexlib/Rex.hx

@@ -26,8 +26,7 @@ import haxe.extern.EitherType;
 @:luaRequire("rex_pcre")
 extern class Rex {
 
-	@:overload(          function       (expr : String, flag : Int) : Rex{})
-	inline public static function create(expr : String, flag : String) : Rex{
+	inline public static function create(expr : String, flag : EitherType<Int,String>) : Rex{
 		return untyped Rex['new'](expr, flag);
 	}