summaryrefslogtreecommitdiff
path: root/testsuite/tests
diff options
context:
space:
mode:
authorSimon Peyton Jones <simonpj@microsoft.com>2016-10-17 08:40:16 +0100
committerSimon Peyton Jones <simonpj@microsoft.com>2016-10-17 08:41:27 +0100
commit179076260624ead5a6c5d96e94f551cfeac9dec9 (patch)
tree0a09e1a353e2abbf9e44c80b24ca4c0c75794906 /testsuite/tests
parentf7278a9068dab28f50351c18177cc352d6570285 (diff)
downloadhaskell-179076260624ead5a6c5d96e94f551cfeac9dec9.tar.gz
Test Trac #12681
Diffstat (limited to 'testsuite/tests')
-rw-r--r--testsuite/tests/rename/should_fail/T12681.hs4
-rw-r--r--testsuite/tests/rename/should_fail/T12681.stderr4
-rw-r--r--testsuite/tests/rename/should_fail/T12681a.hs2
-rw-r--r--testsuite/tests/rename/should_fail/all.T1
4 files changed, 11 insertions, 0 deletions
diff --git a/testsuite/tests/rename/should_fail/T12681.hs b/testsuite/tests/rename/should_fail/T12681.hs
new file mode 100644
index 0000000000..34e9c2fedf
--- /dev/null
+++ b/testsuite/tests/rename/should_fail/T12681.hs
@@ -0,0 +1,4 @@
+module T12681 where
+import qualified T12681a
+
+x = T12681a.A { a = 0 }
diff --git a/testsuite/tests/rename/should_fail/T12681.stderr b/testsuite/tests/rename/should_fail/T12681.stderr
new file mode 100644
index 0000000000..547cf4c01c
--- /dev/null
+++ b/testsuite/tests/rename/should_fail/T12681.stderr
@@ -0,0 +1,4 @@
+
+T12681.hs:4:17: error:
+ Not in scope: ‘a’
+ Perhaps you meant ‘T12681a.a’ (imported from T12681a)
diff --git a/testsuite/tests/rename/should_fail/T12681a.hs b/testsuite/tests/rename/should_fail/T12681a.hs
new file mode 100644
index 0000000000..6e8bfe2b9a
--- /dev/null
+++ b/testsuite/tests/rename/should_fail/T12681a.hs
@@ -0,0 +1,2 @@
+module T12681a where
+ data A = A { a :: Int }
diff --git a/testsuite/tests/rename/should_fail/all.T b/testsuite/tests/rename/should_fail/all.T
index 9fc13b061f..f956bde8f4 100644
--- a/testsuite/tests/rename/should_fail/all.T
+++ b/testsuite/tests/rename/should_fail/all.T
@@ -140,3 +140,4 @@ test('T11071', normal, compile_fail, [''])
test('T11071a', normal, compile_fail, [''])
test('T11663', normal, compile_fail, [''])
test('T12229', normal, compile, [''])
+test('T12681', normal, multimod_compile_fail, ['T12681','-v0'])