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

T4179.hs:26:16: error:
    • Couldn't match type ‘A2 (x (A2 (FCon x) -> A3 (FCon x)))’
                     with ‘A2 (FCon x)’
      Expected type: x (A2 (FCon x) -> A3 (FCon x))
                     -> A2 (FCon x) -> A3 (FCon x)
        Actual type: 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 type function, and may not be injective
    • 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)