summaryrefslogtreecommitdiff
path: root/testsuite/tests/overloadedrecflds/should_fail/T16745B.hs
blob: 1e549ba05dc781848f996519d0894ffe1711b48a (plain)
1
2
3
4
5
6
7
8
9
10
11
{-# LANGUAGE DuplicateRecordFields #-}
-- This module tries to export a record field 'field' (defined below) and a
-- function 'field' (defined in another module), which shouldn't be allowed.
module T16745B
  ( R(field)
  , module T16745C
  ) where

import T16745C

data R = R { field :: Int}