Browse Source

[lua] drop unnecessary type condition for multireturn param check

Justin Donaldson 8 years ago
parent
commit
5aed34a095
1 changed files with 1 additions and 1 deletions
  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