Commit e35812b3 authored by simonpj's avatar simonpj
Browse files

[project @ 2002-11-05 11:38:43 by simonpj]

Add a modules test
parent fa0413fe
module Rnfail040_A( nub ) where
nub = True
......@@ -38,3 +38,5 @@ test('rnfail035', normal, compile_fail, [''])
test('rnfail038', normal, compile_fail, [''])
test('rnfail039', normal, compile_fail, [''])
test('rnfail040', normal, multimod_compile_fail, ['rnfail040', '-v0'])
-- This one should fail, because M.f is ambiguous
module M1 (module M) where
import qualified Rnfail040_A as M -- M.nub
import List as M -- M.nub nub
import Rnfail040_A as T -- T.nub nub
The export item `module M'
creates conflicting exports for `Data.List.nub' and `Rnfail040_A.nub'
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