diff options
author | Wojciech Baranowski <wbaranowski@protonmail.com> | 2019-04-24 21:54:42 +0300 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2019-04-29 21:02:38 -0400 |
commit | 8ee474320d849cc14b51706892665376e8ede629 (patch) | |
tree | 38895dec1deef32a65f2638207d50c722ea907f6 /testsuite/tests/rename | |
parent | 1deb2bb0c5f1178515d57380c96ec3d4df5a7965 (diff) | |
download | haskell-8ee474320d849cc14b51706892665376e8ede629.tar.gz |
Suggest only local candidates from global env
Diffstat (limited to 'testsuite/tests/rename')
-rw-r--r-- | testsuite/tests/rename/should_fail/T16504.hs | 1 | ||||
-rw-r--r-- | testsuite/tests/rename/should_fail/T16504.stderr | 10 |
2 files changed, 7 insertions, 4 deletions
diff --git a/testsuite/tests/rename/should_fail/T16504.hs b/testsuite/tests/rename/should_fail/T16504.hs index 1bb6a08226..8ee426f025 100644 --- a/testsuite/tests/rename/should_fail/T16504.hs +++ b/testsuite/tests/rename/should_fail/T16504.hs @@ -4,6 +4,7 @@ module M where -- Both in global scope simpleFuntcion :: Int -> Bool simpleFunction i = i > 5 +simpleFunction2 i = i < 5 -- Both in local scope f x = anotherFunction x diff --git a/testsuite/tests/rename/should_fail/T16504.stderr b/testsuite/tests/rename/should_fail/T16504.stderr index 7bc59bda3e..2fc822d3a2 100644 --- a/testsuite/tests/rename/should_fail/T16504.stderr +++ b/testsuite/tests/rename/should_fail/T16504.stderr @@ -2,13 +2,15 @@ T16504.hs:5:1: error: The type signature for ‘simpleFuntcion’ lacks an accompanying binding - Perhaps you meant ‘simpleFunction’ (Defined at T16504.hs:6:1) + Perhaps you meant one of these: + ‘simpleFunction’ (Defined at T16504.hs:6:1), + ‘simpleFunction2’ (Defined at T16504.hs:7:1) -T16504.hs:10:9: error: +T16504.hs:11:9: error: The type signature for ‘anotherFunction’ lacks an accompanying binding - Perhaps you meant ‘anotherFuntcion’ (Defined at T16504.hs:11:9) + Perhaps you meant ‘anotherFuntcion’ (Defined at T16504.hs:12:9) -T16504.hs:14:1: error: +T16504.hs:15:1: error: The type signature for ‘nonexistentFuntcion’ lacks an accompanying binding |