summaryrefslogtreecommitdiff
path: root/testsuite/tests/ghc-regress/deSugar/should_run/dsrun004.hs
blob: 8f54e330e14a564175bb4e9ac66e760f3d6f1ff5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
-- Test n+k patterns

{-# LANGUAGE NPlusKPatterns #-}

module Main where

f (n+1) = n

g :: Int -> Int
g (n+4) = n

main = print (f 3)	>>
       print (g 9)