summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_compile/tc168.stderr
blob: 16ba4b04467a727825c2bd85113fa120ccee51d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12

tc168.hs:17:1: error:
    • Could not deduce (C a1 (a, b0))
      from the context: C a1 (a, b)
        bound by the inferred type for ‘g’:
                   C a1 (a, b) => a1 -> a
        at tc168.hs:17:1-16
      The type variable ‘b0’ is ambiguous
    • In the ambiguity check for the inferred type for ‘g’
      To defer the ambiguity check to use sites, enable AllowAmbiguousTypes
      When checking the inferred type
        g :: forall a b a1. C a1 (a, b) => a1 -> a