Ver Fonte

[lua] Lua.setmetatable returns a table

Justin Donaldson há 8 anos atrás
pai
commit
55250b2d71
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      std/lua/Lua.hx

+ 1 - 1
std/lua/Lua.hx

@@ -26,7 +26,7 @@ extern class Lua {
 		Pops a table from the stack and sets it as the new metatable for the value
 		at the given acceptable index.
 	**/
-	public static function setmetatable(tbl:Table<Dynamic,Dynamic>, mtbl: Table<Dynamic, Dynamic>): Void;
+	public static function setmetatable(tbl:Table<Dynamic,Dynamic>, mtbl: Table<Dynamic, Dynamic>): Table<Dynamic, Dynamic>;
 
 	/**
 		Pops a table from the stack and sets it as the new environment for the value