summaryrefslogtreecommitdiff
path: root/testsuite/tests/annotations/should_fail/annfail10.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/annotations/should_fail/annfail10.hs')
-rw-r--r--testsuite/tests/annotations/should_fail/annfail10.hs10
1 files changed, 10 insertions, 0 deletions
diff --git a/testsuite/tests/annotations/should_fail/annfail10.hs b/testsuite/tests/annotations/should_fail/annfail10.hs
new file mode 100644
index 0000000000..d03b6a73fb
--- /dev/null
+++ b/testsuite/tests/annotations/should_fail/annfail10.hs
@@ -0,0 +1,10 @@
+module Annfail10 where
+-- Testing ambiguity in annotations
+
+{-# ANN module 1 #-}
+
+{-# ANN type Foo 1 #-}
+data Foo = Bar
+
+{-# ANN f 1 #-}
+f x = x \ No newline at end of file