Skip to content

Commit 2c24c4c

Browse files
committed
Generate non empty list of TyAbs arguments
1 parent 36bfcf6 commit 2c24c4c

File tree

1 file changed

+2
-1
lines changed
  • lambda-buffers-compiler/test/Test/LambdaBuffers/Compiler

1 file changed

+2
-1
lines changed

lambda-buffers-compiler/test/Test/LambdaBuffers/Compiler/Gen.hs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,8 @@ genTyBodyOpaque = return $ defMessage & P.opaque .~ defMessage
111111

112112
genTyAbs :: QC.Gen TyAbs
113113
genTyAbs = do
114-
vns <- QC.chooseInt (0, limit) >>= vecOf genVarName
114+
-- TODO(bladyjoker): Allow empty args
115+
vns <- QC.chooseInt (1, limit) >>= vecOf genVarName
115116
args <- for (List.nub vns) genTyArg
116117
body <- genTyBody args
117118
return $

0 commit comments

Comments
 (0)