Explorar o código

[lua] drop unnecessary type condition for multireturn param check

Justin Donaldson %!s(int64=8) %!d(string=hai) anos
pai
achega
5aed34a095
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/generators/genlua.ml

+ 1 - 1
src/generators/genlua.ml

@@ -572,7 +572,7 @@ and ttype_multireturn t = match t with
             false
 and check_multireturn_param ctx t pos =
    match t with
-         TAbstract(_,p) | TType(_,p) | TInst(_,p) ->
+         TAbstract(_,p) | TInst(_,p) ->
             if List.exists ttype_multireturn p then
                 error "MultiReturns must not be type parameters" pos
             else