summaryrefslogtreecommitdiff
path: root/testsuite/tests/overloadedrecflds/ghci/duplicaterecfldsghci01.stdout
blob: 3270089b9c2b276455a823e3f55d1f3d832eff22 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
True
data S = MkS {Ghci1.foo :: Int} 	-- Defined at <interactive>:3:16

data T a = MkT {Ghci2.foo :: Bool, ...}
  	-- Defined at <interactive>:4:18

<interactive>:1:1: error:
    Ambiguous occurrence ‘foo’
    It could refer to either the field ‘foo’,
                             defined at <interactive>:3:16
                          or the field ‘foo’, defined at <interactive>:4:18

<interactive>:9:1: error:
    Ambiguous occurrence ‘foo’
    It could refer to either the field ‘foo’,
                             defined at <interactive>:3:16
                          or the field ‘foo’, defined at <interactive>:4:18
True

<interactive>:1:1: error:
    Ambiguous occurrence ‘foo’
    It could refer to either the field ‘foo’,
                             defined at <interactive>:3:16
                          or the field ‘foo’, defined at <interactive>:4:18
foo :: U -> Int
42