Browse Source

[lua] focus type parameter for lua/coroutine

Justin Donaldson 8 years ago
parent
commit
870b97886c
1 changed files with 1 additions and 1 deletions
  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.
 		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`.