summaryrefslogtreecommitdiff
path: root/testsuite/tests/overloadedrecflds/should_fail/T18999_NoDisambiguateRecordFields.hs
blob: 2a78c20d13b463db8c4b3f58625ba2700d531e16 (plain)
1
2
3
4
5
6
7
8
{-# LANGUAGE NoFieldSelectors #-}
module T18999_NoDisambiguateRecordFields where

data Foo = Foo { not :: Int }

foo = Foo { not = 1 } -- ambiguous without DisambiguateRecordFields
x = not -- unambiguous because of NoFieldSelectors
y = foo { not = 2 } -- ambiguous without DisambiguateRecordFields