summaryrefslogtreecommitdiff
path: root/testsuite/tests/rename/should_fail/T14307.hs
blob: 9bb33b7425617ba12745432a3c576e35a2362d53 (plain)
1
2
3
4
5
6
7
8
9
10
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}

module T14307 where

data A = A { field :: Int }
data B = B { field :: Int }

f :: B -> Int
f (C { field }) = field