summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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'])