summaryrefslogtreecommitdiff
path: root/testsuite/tests/gadt/T7293.stderr
blob: 664f9a09dfcc6f1c108920769ca26d2e91c1a75b (plain)
1
2
3
4
5
6
7
8
9
10
11
12

T7293.hs:24:1: error: [-Woverlapping-patterns (in -Wdefault), -Werror=overlapping-patterns]
    Pattern match is redundant
    In an equation for ‘nth’: nth Nil _ = ...

T7293.hs:24:5: error: [-Winaccessible-code (in -Wdefault), -Werror=inaccessible-code]
    • Couldn't match type ‘'True’ with ‘'False’
      Inaccessible code in
        a pattern with constructor: Nil :: forall a. Vec a 'Zero,
        in an equation for ‘nth’
    • In the pattern: Nil
      In an equation for ‘nth’: nth Nil _ = undefined