瀏覽代碼

[lua] focus type parameter for lua/coroutine

Justin Donaldson 8 年之前
父節點
當前提交
870b97886c
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      std/lua/Coroutine.hx

+ 1 - 1
std/lua/Coroutine.hx

@@ -64,7 +64,7 @@ extern class Coroutine<T:Function> extends Thread {
 		The coroutine cannot be running a C function, a metamethod, or an iterator.
 		The coroutine cannot be running a C function, a metamethod, or an iterator.
 		Any arguments to `yield` are passed as extra results to `resume`.
 		Any arguments to `yield` are passed as extra results to `resume`.
 	**/
 	**/
-	public static function yield(args : Rest<Dynamic>) : Dynamic;
+	public static function yield<T>(args : Rest<T>) : T;
 
 
 	/**
 	/**
 		Creates a new coroutine, with body `f`.
 		Creates a new coroutine, with body `f`.