diff options
Diffstat (limited to 'testsuite/tests/annotations/should_fail/annfail09.hs')
-rw-r--r-- | testsuite/tests/annotations/should_fail/annfail09.hs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/testsuite/tests/annotations/should_fail/annfail09.hs b/testsuite/tests/annotations/should_fail/annfail09.hs new file mode 100644 index 0000000000..871dd11895 --- /dev/null +++ b/testsuite/tests/annotations/should_fail/annfail09.hs @@ -0,0 +1,12 @@ +module Annfail09 where +-- Testing that we detect references to ids defined in module being compiled in annotations + +g = 10 + +{-# ANN module g #-} + +{-# ANN type Foo g #-} +data Foo = Bar + +{-# ANN f g #-} +f x = x
\ No newline at end of file |