Explorar o código

arg type inference against coroutine type

Dan Korostelev %!s(int64=4) %!d(string=hai) anos
pai
achega
4b0beb971e
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      src/typing/typer.ml

+ 2 - 0
src/typing/typer.ml

@@ -1202,6 +1202,8 @@ and type_local_function ctx kind f with_type p =
 					| _,TMono _ -> unify ctx rt tr p
 					| _ -> ()
 				end
+			| TAbstract ({ a_path = [],"Coroutine" }, [ft]) ->
+				loop ft
 			| TAbstract(a,tl) ->
 				loop (Abstract.get_underlying_type a tl)
 			| _ -> ())