summaryrefslogtreecommitdiff
path: root/testsuite/tests/partial-sigs/should_fail/InstantiatedNamedWildcardsInConstraints.stderr
blob: 6ba1b6f3119745260d612f2158226901d2967c5e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16

InstantiatedNamedWildcardsInConstraints.hs:4:14: error: [GHC-88464]
    • Found type wildcard ‘_a’ standing for ‘b’
      Where: ‘b’ is a rigid type variable bound by
               the inferred type of foo :: (Enum b, Show b) => b -> (String, b)
               at InstantiatedNamedWildcardsInConstraints.hs:4:1-40
      To use the inferred type, enable PartialTypeSignatures
    • In the type signature: foo :: (Enum _a, _) => _a -> (String, b)

InstantiatedNamedWildcardsInConstraints.hs:4:18: error: [GHC-88464]
    • Found extra-constraints wildcard standing for ‘Show b’
      Where: ‘b’ is a rigid type variable bound by
               the inferred type of foo :: (Enum b, Show b) => b -> (String, b)
               at InstantiatedNamedWildcardsInConstraints.hs:4:1-40
      To use the inferred type, enable PartialTypeSignatures
    • In the type signature: foo :: (Enum _a, _) => _a -> (String, b)