summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_compile/T2735.hs
blob: 81deb7dda47b54e9bc598f1afa249e423b4c5bf2 (plain)
1
2
3
4
5
6
7
-- Trac #2735

module Bug where

data S = S { s1 :: (), s2 :: () }

f s = s { s1 = (), s2 = s1 s }