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