summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_fail/tcfail065.stderr
blob: 9be21918cb4239334174d615d5ea16a3d57b37c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

tcfail065.hs:29:18: error:
    • Couldn't match type ‘x1’ with ‘x’
      Expected: X x
        Actual: X x1
      ‘x1’ is a rigid type variable bound by
        the type signature for:
          setX :: forall x1. x1 -> X x -> X x
        at tcfail065.hs:29:3-6
      ‘x’ is a rigid type variable bound by
        the instance declaration
        at tcfail065.hs:28:10-19
    • In the expression: X x
      In an equation for ‘setX’: setX x (X _) = X x
      In the instance declaration for ‘HasX (X x)’
    • Relevant bindings include
        x :: x1 (bound at tcfail065.hs:29:8)
        setX :: x1 -> X x -> X x (bound at tcfail065.hs:29:3)