Skip to content

Commit

Permalink
Add negative test for ucsd-progsys#1904
Browse files Browse the repository at this point in the history
  • Loading branch information
Fizzixnerd committed Jan 6, 2022
1 parent 9f2076b commit 8aaceac
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/datacon/neg/AutoliftedFields.hs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{-@ LIQUID "--exact-data-cons" @-}

module AutoliftedFields where

{-@ type Nat = { v : Int | v >= 0 } @-}
type Nat = Int

data T = T { getT :: Nat }

{-@ f :: { t : T | getT t <= 0 } -> Nat @-}
f :: T -> Nat
f (T x) = x

0 comments on commit 8aaceac

Please sign in to comment.