summaryrefslogtreecommitdiff
path: root/testsuite/tests/annotations/should_fail/annfail02.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/annotations/should_fail/annfail02.hs')
-rw-r--r--testsuite/tests/annotations/should_fail/annfail02.hs7
1 files changed, 7 insertions, 0 deletions
diff --git a/testsuite/tests/annotations/should_fail/annfail02.hs b/testsuite/tests/annotations/should_fail/annfail02.hs
new file mode 100644
index 0000000000..50154e752c
--- /dev/null
+++ b/testsuite/tests/annotations/should_fail/annfail02.hs
@@ -0,0 +1,7 @@
+module Annfail02 where
+-- Testing annotating things that don't exist in the right namespace
+
+data Foo = Bar
+
+{-# ANN Foo (1 :: Int) #-}
+{-# ANN type Bar (2 :: Int) #-} \ No newline at end of file