浏览代码

[lua] drop unnecessary type condition for multireturn param check

Justin Donaldson 8 年之前
父节点
当前提交
5aed34a095
共有 1 个文件被更改,包括 1 次插入1 次删除
  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