projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[project @ 1996-01-08 20:28:12 by partain]
[ghc-hetmet.git]
/
ghc
/
compiler
/
tests
/
deSugar
/
ds038.hs
diff --git a/ghc/compiler/tests/deSugar/ds038.hs
b/ghc/compiler/tests/deSugar/ds038.hs
new file mode 100644
(file)
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