[project @ 1999-11-23 11:43:25 by simonpj]
authorsimonpj <unknown>
Tue, 23 Nov 1999 11:43:25 +0000 (11:43 +0000)
committersimonpj <unknown>
Tue, 23 Nov 1999 11:43:25 +0000 (11:43 +0000)
Add test for top-level qualified defns

ghc/tests/rename/should_fail/rnfail021.hs [new file with mode: 0644]
ghc/tests/rename/should_fail/rnfail021.stderr [new file with mode: 0644]

diff --git a/ghc/tests/rename/should_fail/rnfail021.hs b/ghc/tests/rename/should_fail/rnfail021.hs
new file mode 100644 (file)
index 0000000..ead2207
--- /dev/null
@@ -0,0 +1,6 @@
+-- !!! Qualified names in binding positions are rejected
+
+module Foo where
+
+Baz.f = True
+
diff --git a/ghc/tests/rename/should_fail/rnfail021.stderr b/ghc/tests/rename/should_fail/rnfail021.stderr
new file mode 100644 (file)
index 0000000..00d554d
--- /dev/null
@@ -0,0 +1,6 @@
+
+rnfail021.hs:5:
+    Invalid use of qualified name `Baz.f' in the binding for `Baz.f'
+
+Compilation had errors
+