diff options
Diffstat (limited to 'testsuite/tests/rename/should_fail/rnfail023.hs')
-rw-r--r-- | testsuite/tests/rename/should_fail/rnfail023.hs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/testsuite/tests/rename/should_fail/rnfail023.hs b/testsuite/tests/rename/should_fail/rnfail023.hs new file mode 100644 index 0000000000..bf7c4a2f20 --- /dev/null +++ b/testsuite/tests/rename/should_fail/rnfail023.hs @@ -0,0 +1,15 @@ +-- !!! Check that type signatures and pragmas that +-- !!! don't have a "parent" are correctly reported + +module ShouldFail where + +-- Top level test +f :: Int -> Int +{-# INLINE f #-} + +-- Nested test +h :: Int -> Int -- This one is ok +h x = x + where + g :: Int -> Int -- Bogus + |