summaryrefslogtreecommitdiff
path: root/testsuite/tests/indexed-types/should_fail/T4179.stderr
blob: 701006258a4666245f31695a99b71a4259638ccf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16

T4179.hs:26:16: error: [GHC-83865]
    • Couldn't match type: A2 (x (A2 (FCon x) -> A3 (FCon x)))
                     with: A2 (FCon x)
      Expected: x (A2 (FCon x) -> A3 (FCon x))
                -> A2 (FCon x) -> A3 (FCon x)
        Actual: x (A2 (FCon x) -> A3 (FCon x))
                -> A2 (x (A2 (FCon x) -> A3 (FCon x)))
                -> A3 (x (A2 (FCon x) -> A3 (FCon x)))
      NB: ‘A2’ is a non-injective type family
    • In the first argument of ‘foldDoC’, namely ‘op’
      In the expression: foldDoC op
      In an equation for ‘fCon’: fCon = foldDoC op
    • Relevant bindings include
        fCon :: Con x -> A2 (FCon x) -> A3 (FCon x)
          (bound at T4179.hs:26:1)