summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_fail/tcfail007.stderr
blob: 1315646b770299ff1f21fb747366bb2b0d81f5a1 (plain)
1
2
3
4
5
6
7
8

tcfail007.hs:3:15: error: [GHC-39999]
    • No instance for ‘Num Bool’ arising from a use of ‘+’
    • In the expression: x + 1
      In an equation for ‘n’:
          n x
            | True = x + 1
            | False = True