summaryrefslogtreecommitdiff
path: root/testsuite/tests/overloadedrecflds/ghci/GHCiDRF.stdout
blob: 1a7b44e64ea3bfe94be7a672b612ca6470c17677 (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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
GHCiDRF.foo :: T -> Int

<interactive>:1:1: error:
    Ambiguous occurrence ‘GHCiDRF.bar’
    It could refer to
       either the field ‘bar’, defined at GHCiDRF.hs:4:16
           or the field ‘bar’, defined at GHCiDRF.hs:3:28
type T :: *
data T = MkT {foo :: Int, ...}
  	-- Defined at GHCiDRF.hs:3:16
type U :: *
data U = MkU {GHCiDRF.bar :: Bool}
  	-- Defined at GHCiDRF.hs:4:16

type T :: *
data T = MkT {..., GHCiDRF.bar :: Int}
  	-- Defined at GHCiDRF.hs:3:28
GHCiDRF.foo :: GHCiDRF.T -> Int

<interactive>:1:1: error:
    Ambiguous occurrence ‘GHCiDRF.bar’
    It could refer to
       either the field ‘bar’,
              imported qualified from ‘GHCiDRF’
              (and originally defined at GHCiDRF.hs:3:28-30)
           or the field ‘bar’,
              imported qualified from ‘GHCiDRF’
              (and originally defined at GHCiDRF.hs:4:16-18)
type GHCiDRF.T :: *
data GHCiDRF.T = GHCiDRF.MkT {GHCiDRF.foo :: Int, ...}
  	-- Defined at GHCiDRF.hs:3:16
type GHCiDRF.T :: *
data GHCiDRF.T = GHCiDRF.MkT {..., GHCiDRF.bar :: Int}
  	-- Defined at GHCiDRF.hs:3:28

type GHCiDRF.U :: *
data GHCiDRF.U = GHCiDRF.MkU {GHCiDRF.bar :: Bool}
  	-- Defined at GHCiDRF.hs:4:16

<interactive>:11:1: error:
    Ambiguous occurrence ‘GHCiDRF.bar’
    It could refer to
       either the field ‘bar’,
              imported qualified from ‘GHCiDRF’
              (and originally defined at GHCiDRF.hs:3:28-30)
           or the field ‘bar’,
              imported qualified from ‘GHCiDRF’
              (and originally defined at GHCiDRF.hs:4:16-18)