summaryrefslogtreecommitdiff
path: root/testsuite/tests/overloadedrecflds/should_fail/T17420.stderr
blob: 3a94cd563925b3b68505b04392fbff2f6dabe643 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
[1 of 2] Compiling T17420A          ( T17420A.hs, T17420A.o )
[2 of 2] Compiling T17420           ( T17420.hs, T17420.o )

T17420.hs:6:17: error: [GHC-87543]
    Ambiguous occurrence ‘name’
    It could refer to
       either the field ‘name’ of record ‘Dog’,
              imported from ‘T17420A’ at T17420.hs:4:1-14
              (and originally defined at T17420A.hs:4:18-21)
           or the field ‘name’ of record ‘Human’,
              imported from ‘T17420A’ at T17420.hs:4:1-14
              (and originally defined at T17420A.hs:5:22-25)