[project @ 1999-09-01 14:24:27 by sof]
authorsof <unknown>
Wed, 1 Sep 1999 14:24:27 +0000 (14:24 +0000)
committersof <unknown>
Wed, 1 Sep 1999 14:24:27 +0000 (14:24 +0000)
qualified import reg. test

ghc/tests/reader/should_fail/read010.hs [new file with mode: 0644]
ghc/tests/reader/should_fail/read010.stderr [new file with mode: 0644]

diff --git a/ghc/tests/reader/should_fail/read010.hs b/ghc/tests/reader/should_fail/read010.hs
new file mode 100644 (file)
index 0000000..8f47cf6
--- /dev/null
@@ -0,0 +1,9 @@
+-- !!! Check that 'qualified' doesn't bring the unqual'ed name into scope.
+module ShouldFail where
+
+import qualified List as L ( intersperse ) 
+
+x = L.intersperse
+
+y = intersperse
+
diff --git a/ghc/tests/reader/should_fail/read010.stderr b/ghc/tests/reader/should_fail/read010.stderr
new file mode 100644 (file)
index 0000000..0c0eb5c
--- /dev/null
@@ -0,0 +1,14 @@
+
+==================== Parser ====================
+module ShouldFail where
+import qualified List as  L (intersperse)
+{- rec -}
+y = intersperse
+x = L.intersperse
+
+
+
+read010.hs:8: Variable not in scope: `intersperse'
+
+Compilation had errors
+