Skip to content

Commit

Permalink
fix for #2404
Browse files Browse the repository at this point in the history
  • Loading branch information
nikivazou committed Oct 29, 2024
1 parent d1fe5a0 commit 355107c
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 @@ -2286,6 +2286,7 @@ executable basic-pos
, SkipDerived00
, T2349
, T2369
, T2404

ghc-options: -fplugin=LiquidHaskell -fkeep-going -O0
if flag(measure-timings)
Expand Down

0 comments on commit 355107c

Please sign in to comment.