浏览代码

[lua] Lua.setmetatable returns a table

Justin Donaldson 8 年之前
父节点
当前提交
55250b2d71
共有 1 个文件被更改,包括 1 次插入1 次删除
  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