diff options
Diffstat (limited to 'testsuite/tests/annotations/should_compile/T19374a.hs')
-rw-r--r-- | testsuite/tests/annotations/should_compile/T19374a.hs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/testsuite/tests/annotations/should_compile/T19374a.hs b/testsuite/tests/annotations/should_compile/T19374a.hs new file mode 100644 index 0000000000..95a1aa8baf --- /dev/null +++ b/testsuite/tests/annotations/should_compile/T19374a.hs @@ -0,0 +1,9 @@ +{-# LANGUAGE TypeOperators #-} +module T19374 where + +(%%) :: [a] -> [a] -> [a] +(%%) = (++) +{-# ANN (%%) "This is an annotation" #-} + +data (%%%) +{-# ANN type (%%%) "This is also an annotation" #-} |