X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fcompiler%2Ftests%2FdeSugar%2Fds038.hs;fp=ghc%2Fcompiler%2Ftests%2FdeSugar%2Fds038.hs;h=ceffab1435fff0d53688e057995fa599586a7f7d;hb=e7d21ee4f8ac907665a7e170c71d59e13a01da09;hp=0000000000000000000000000000000000000000;hpb=e48474bff05e6cfb506660420f025f694c870d38;p=ghc-hetmet.git diff --git a/ghc/compiler/tests/deSugar/ds038.hs b/ghc/compiler/tests/deSugar/ds038.hs new file mode 100644 index 0000000..ceffab1 --- /dev/null +++ b/ghc/compiler/tests/deSugar/ds038.hs @@ -0,0 +1,7 @@ +--!!! Jon Hill reported a bug in desugaring this in 0.09 +--!!! (recursive with n+k patts) +-- +takeList :: Int -> [a] -> [a] +takeList 0 _ = [] +takeList (n+1) [] = [] +takeList (n+1) (x:xs) = x : takeList n xs