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

module Bug where

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

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