1
1
mirror of https://github.com/github/semantic.git synced 2024-12-30 10:27:45 +03:00
semantic/test/fixtures/haskell/corpus/statements.A.hs
Rick Winfrey c2a3608154 Add missing assignments
I discovered a test file in tree-sitter-haskell I overlooked while assigning semantic.
2018-06-19 17:37:40 -07:00

9 lines
209 B
Haskell

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