summaryrefslogtreecommitdiff
path: root/testsuite/tests/ado/ado003.hs
blob: 622968dfae6705bbb2bfe2bd563f6adee2a79573 (plain)
1
2
3
4
5
6
7
8
{-# LANGUAGE ApplicativeDo #-}
module ShouldFail where

g :: IO ()
g = do
  x <- getChar
  'a' <- return (3::Int) -- type error
  return ()