summaryrefslogtreecommitdiff
path: root/testsuite/tests/linear/should_fail/LinearRecordUpdate.hs
blob: c9df2936244d311674d806d04b4bd2bfdf58b98c (plain)
1
2
3
4
5
6
7
8
{-# LANGUAGE LinearTypes #-}

module LinearRecordUpdate where

data R = R { x :: Int, y :: Bool }

shouldFail :: R %1 -> R
shouldFail r = r { y = False }