summaryrefslogtreecommitdiff
path: root/ghc/tests/reader/should_fail/expr001.hs
blob: 49853a74cfbffdaf75c20472f30c5d7e267aad0f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
{-
From: Kevin Hammond <kh>
To: partain
Subject: Re:  parsing problem w/ queens
Date: Wed, 9 Oct 91 17:31:46 BST

OK, I've fixed that little problem by disallowing,
-}

f x = x + if c then 1 else 2
f x = x + 1::Int

-- (the conditional/sig need to be parenthesised).  If this is
-- problematic, let me know!