Skip to content

Commit

Permalink
Merge pull request #2415 from ucsd-progsys/T2404
Browse files Browse the repository at this point in the history
fix for #2404
  • Loading branch information
nikivazou authored Oct 29, 2024
2 parents c95fb5a + ccaa975 commit cb66d37
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion liquidhaskell-boot/src/Language/Haskell/Liquid/Parse.hs
Original file line number Diff line number Diff line change
Expand Up @@ -789,7 +789,7 @@ bTup ts rs r
(reftUReft r)
where
args = [(Mb.fromMaybe dummySymbol x, mapReft mempty t) | (x,t) <- ts]
makeProp i = RProp (take i args) ((snd <$> ts)!!i)
makeProp i = RProp (reverse $ take i args) ((snd <$> ts)!!i)
rs' = makeProp <$> [1..(length ts-1)]


Expand Down
6 changes: 6 additions & 0 deletions tests/pos/T2404.hs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module T2404 where


{-@ lists :: (l::Int, {v:[Char] | len v = l}, {v:[Int] | len v = l}) @-}
lists :: (Int, [Char], [Int])
lists = (3, "abc", [7, 8, 9])
1 change: 1 addition & 0 deletions tests/tests.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -1950,6 +1950,7 @@ executable unit-pos-3
, T2096
, T2235
, T2237
, T2404
, T385
, T531
, T595a
Expand Down

0 comments on commit cb66d37

Please sign in to comment.