summaryrefslogtreecommitdiff
path: root/testsuite/tests/rename/should_compile/rn039.hs
blob: 90338581587ac08d1fded7692c89db5936c21910 (plain)
1
2
3
4
5
6
{-# OPTIONS -fwarn-name-shadowing #-}
module ShouldCompile where

-- !!! test shadowing of a global name

g = 42 where f -1 = -1  -- shadows (-), probably by accident!