1
1
mirror of https://github.com/github/semantic.git synced 2024-12-19 12:51:52 +03:00
semantic/test/fixtures/haskell/corpus/statements.A.hs

9 lines
209 B
Haskell
Raw Normal View History

2018-06-14 02:48:03 +03:00
f = if a then 1 else 2
f = if a; then b; else c
f = if (if a then b else c) then d else e
f = if if a then b else c then d else e
head' :: [a] -> a
head' [] = error "No head for empty lists!"
head' (x:_) = x