diff options
Diffstat (limited to 'testsuite/tests/deSugar/should_compile/ds016.hs')
-rw-r--r-- | testsuite/tests/deSugar/should_compile/ds016.hs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/testsuite/tests/deSugar/should_compile/ds016.hs b/testsuite/tests/deSugar/should_compile/ds016.hs new file mode 100644 index 0000000000..41394e7ed9 --- /dev/null +++ b/testsuite/tests/deSugar/should_compile/ds016.hs @@ -0,0 +1,15 @@ +-- !!! ds016 -- case expressions +-- +module ShouldCompile where + +f x y z = + case ( x ++ x ++ x ++ x ++ x ) of + [] -> [] + [a] -> error "2" + [a,b,c] -> + case ( (y,z,y,z) ) of +-- (True, _, False, _) | True == False -> z +-- (True, _, False, _) | True == False -> z + _ -> z + + (a:bs) -> error "4" |