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