Commit 179da89a authored by simonmar's avatar simonmar
Browse files

[project @ 2001-08-28 13:56:30 by simonmar]

Test that hiding a non-exported identifier is legal.

(Currently an expected failure, as GHC doesn't implement this change
yet.  I was surprised to discover this proposed change in Haskell 98,
and I think I'd prefer if this case were an error.)
parent 6d7f6f5a
......@@ -29,11 +29,13 @@ test "rn033" { vtc("") }
test "rn034" { vtc("") }
test "rn035" { vtc("") }
test "rn036" { vtc("") }
-- really a mulit-module test:
test "Rn037Help" { vtc("") }
test "rn037" { vtc("") }
test "rn038" { $expect = "fail" vtc("") }
test "timing001" { vtc("") }
test "timing002" { vtc("") }
test "timing003" { vtc("") }
-- !!! it is legal to import a module hiding an entity that it doesn't export
module ShouldCompile where
import List hiding ( wibble )
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