Commit 3d7163d4 authored by simonpj's avatar simonpj
Browse files

[project @ 2005-06-29 15:42:35 by simonpj]

Add renamer test (ambiguos occurrence)
parent b7c46275
......@@ -45,3 +45,4 @@ test('rnfail041', normal, compile_fail, [''])
test('rnfail042', normal, compile_fail, [''])
test('rnfail043', skip_if_no_ghci, compile_fail, [''])
test('rnfail044', normal, compile_fail, [''])
-- Renamer test
-- The ambiguity is between the Prelude import and the defn
-- of splitAt. The import of Data.List has nothing to do with it.
module A ( splitAt ) where
import qualified Data.List
splitAt = undefined
Ambiguous occurrence `splitAt'
It could refer to either `A.splitAt', defined at rnfail044.hs:8:2
or `GHC.List.splitAt', imported from Prelude at Implicit import declaration
Supports Markdown
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