@@ -491,12 +491,13 @@ expectedNativeTypes = M.fromList . go
491491 , (Field " bar" , TyString )]
492492 rv = RowVariable 0 " row"
493493 CoreWithDefaultRead ->
494- [ (" use-with-default-read" , NotIndexed $ TypeScheme [rv ] [constr1] (TyTable (RowVar rv ) :~> TyObject (RowVar rv ) :~> TyInt ))
494+ [ (" use-with-default-read" , NotIndexed $ TypeScheme [rv1, rv2 ] [constr1, constr2 ] (TyTable (RowVar rv1 ) :~> TyObject (RowVar rv2 ) :~> TyInt ))
495495 , (" tbl1" , NotIndexed $ NonGeneric $ TyTable (RowConcrete sc1))
496496 , (" tbl2" , NotIndexed $ NonGeneric $ TyTable (RowConcrete sc2))
497497 , (" invoke-with-default-read" , NotIndexed $ NonGeneric $ TyNullary TyInt ) ]
498498 where
499- constr1 = RoseSubRow (RoseConcrete subRowScm) (RoseVar rv)
499+ constr1 = RoseSubRow (RoseConcrete subRowScm) (RoseVar rv2)
500+ constr2 = RoseSubRow (RoseVar rv2) (RoseVar rv1)
500501 subRowScm = M. fromList
501502 [ (Field " foo" , TyInt )
502503 ]
@@ -506,7 +507,8 @@ expectedNativeTypes = M.fromList . go
506507 sc2 = M. fromList
507508 [ (Field " foo" , TyInt )
508509 , (Field " bar" , TyString )]
509- rv = RowVariable 0 " row"
510+ rv1 = RowVariable 1 " row1"
511+ rv2 = RowVariable 0 " row2"
510512 CoreWithRead ->
511513 [ (" use-with-read" , NotIndexed $ TypeScheme [rv] [constr1] (TyTable (RowVar rv) :~> TyInt ))
512514 , (" tbl1" , NotIndexed $ NonGeneric $ TyTable (RowConcrete sc1))
0 commit comments