Commit 2fbca5be authored by simonmar's avatar simonmar
Browse files

[project @ 2001-10-22 16:13:07 by simonmar]

Add a name shadowing test.
parent 1a9a693e
......@@ -34,6 +34,7 @@ test "Rn037Help" { vtc("") }
test "rn037" { vtc("") }
test "rn038" { $expect = "fail" vtc("") }
test "rn039" { vtc("") }
test "timing001" { vtc("") }
test "timing002" { vtc("") }
......
{-# OPTIONS -fwarn-name-shadowing #-}
module ShouldCompile where
-- !!! test shadowing of a global name
g = 42 where f -1 = -1 -- shadows (-), probably by accident!
rn039.hs:6:
Warning: This binding for `-' shadows an existing binding
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment