summaryrefslogtreecommitdiff
path: root/testsuite/tests/ghc-regress/rename/should_compile/rn022.hs
blob: c59b949a48de791d3c584cafd862e06db48d1bf2 (plain)
1
2
3
4
5
6
7
8
9
10
11
-- this is legal, I think (WDP)

module Confused where

import Prelude hiding (otherwise)

otherwise = False

f x | otherwise = 1

g otherwise | otherwise = 2