summaryrefslogtreecommitdiff
path: root/testsuite/tests/partial-sigs/should_compile/T11192.stderr
blob: 77b70e3fe27984c208c5030f5e7aa04a175b19e2 (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

T11192.hs:7:14: warning:
    • Found type wildcard ‘_’ standing for ‘Int -> t -> t’
      Where: ‘t’ is a rigid type variable bound by
               the inferred type of go :: Int -> t -> t at T11192.hs:8:8
    • In the type signature:
        go :: _
      In the expression:
        let
          go :: _
          go 0 a = a
        in go (0 :: Int) undefined
      In an equation for ‘fails’:
          fails
            = let
                go :: _
                go 0 a = a
              in go (0 :: Int) undefined
    • Relevant bindings include
        go :: Int -> t -> t (bound at T11192.hs:8:8)
        fails :: a (bound at T11192.hs:6:1)

T11192.hs:13:14: warning:
    • Found type wildcard ‘_’ standing for ‘t -> t1 -> t1’
      Where: ‘t1’ is a rigid type variable bound by
               the inferred type of go :: t -> t1 -> t1 at T11192.hs:14:8
             ‘t’ is a rigid type variable bound by
               the inferred type of go :: t -> t1 -> t1 at T11192.hs:14:8
    • In the type signature:
        go :: _
      In the expression:
        let
          go :: _
          go _ a = a
        in go (0 :: Int) undefined
      In an equation for ‘succeeds’:
          succeeds
            = let
                go :: _
                go _ a = a
              in go (0 :: Int) undefined
    • Relevant bindings include
        go :: t -> t1 -> t1 (bound at T11192.hs:14:8)
        succeeds :: a (bound at T11192.hs:12:1)