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

T7294.hs:25:1: warning: [-Woverlapping-patterns (in -Wdefault)]
    Pattern match is redundant
    In an equation for ‘nth’: nth Nil _ = ...

T7294.hs:25:5: warning: [-Wdeferred-type-errors (in -Wdefault)]
    • 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