summaryrefslogtreecommitdiff
path: root/testsuite/tests/backpack/should_fail/bkpfail49.bkp
diff options
context:
space:
mode:
authorEdward Z. Yang <ezyang@cs.stanford.edu>2017-03-28 10:21:15 -0700
committerEdward Z. Yang <ezyang@cs.stanford.edu>2017-04-02 16:43:47 -0700
commit45d33f35f689192fd74c9954d782e4cee04acfc8 (patch)
treebe0e2775ab0b97d27bba432592a30efb7b8a8fcd /testsuite/tests/backpack/should_fail/bkpfail49.bkp
parent0c333c89ffce5c271d3123e612c7ae22a810649e (diff)
downloadhaskell-45d33f35f689192fd74c9954d782e4cee04acfc8.tar.gz
Better test coverage for module reexports in signatures.
Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu>
Diffstat (limited to 'testsuite/tests/backpack/should_fail/bkpfail49.bkp')
-rw-r--r--testsuite/tests/backpack/should_fail/bkpfail49.bkp11
1 files changed, 11 insertions, 0 deletions
diff --git a/testsuite/tests/backpack/should_fail/bkpfail49.bkp b/testsuite/tests/backpack/should_fail/bkpfail49.bkp
new file mode 100644
index 0000000000..a30a1f8618
--- /dev/null
+++ b/testsuite/tests/backpack/should_fail/bkpfail49.bkp
@@ -0,0 +1,11 @@
+unit p where
+ signature A (module Data.Bool) where
+ import Data.Bool
+
+unit q where
+ dependency signature p[A=<A>]
+ signature A (module Data.Bool) where
+ import Data.Bool ()
+ module M where
+ import qualified A
+ x = A.True -- should not exist!