diff options
| author | Matthew Pickering <matthewtpickering@gmail.com> | 2022-06-20 14:43:57 +0100 |
|---|---|---|
| committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2022-06-28 19:02:41 -0400 |
| commit | 251471e7706ea3029b4a0c086035c16e7b67a081 (patch) | |
| tree | 2a561e2a2efa544b7535c12ed71b62c536ba3fa1 /testsuite/tests/rename/should_compile | |
| parent | eecab8f9847ebf576fbe2f6a2b9564c25a0230e0 (diff) | |
| download | haskell-251471e7706ea3029b4a0c086035c16e7b67a081.tar.gz | |
Cleanup BuiltInSyntax vs UserSyntax
There was some confusion about whether FUN/TYPE/One/Many should be
BuiltInSyntax or UserSyntax. The answer is certainly UserSyntax as
BuiltInSyntax is for things which are directly constructed by the parser
rather than going through normal renaming channels.
I fixed all the obviously wrong places I could find and added a test for
the original bug which was caused by this (#21752)
Fixes #21752 #20695 #18302
Diffstat (limited to 'testsuite/tests/rename/should_compile')
| -rw-r--r-- | testsuite/tests/rename/should_compile/T18302A.hs | 4 | ||||
| -rw-r--r-- | testsuite/tests/rename/should_compile/T18302B.hs | 8 | ||||
| -rw-r--r-- | testsuite/tests/rename/should_compile/all.T | 1 |
3 files changed, 0 insertions, 13 deletions
diff --git a/testsuite/tests/rename/should_compile/T18302A.hs b/testsuite/tests/rename/should_compile/T18302A.hs deleted file mode 100644 index 7df51aa3ea..0000000000 --- a/testsuite/tests/rename/should_compile/T18302A.hs +++ /dev/null @@ -1,4 +0,0 @@ -module T18302A ( module GHC.Prim ) where - -import GHC.Prim - diff --git a/testsuite/tests/rename/should_compile/T18302B.hs b/testsuite/tests/rename/should_compile/T18302B.hs deleted file mode 100644 index 6c8075fa9f..0000000000 --- a/testsuite/tests/rename/should_compile/T18302B.hs +++ /dev/null @@ -1,8 +0,0 @@ --- | Check that TYPE and (->) are re-exportable. -module T18302B where - -import T18302A - -type T = TYPE -type F = (->) - diff --git a/testsuite/tests/rename/should_compile/all.T b/testsuite/tests/rename/should_compile/all.T index ac660606ab..1c02db6e6e 100644 --- a/testsuite/tests/rename/should_compile/all.T +++ b/testsuite/tests/rename/should_compile/all.T @@ -176,7 +176,6 @@ test('T17832', [], multimod_compile, ['T17832M1', 'T17832M2']) test('T17837', normal, compile, ['']) test('T18497', [], makefile_test, ['T18497']) test('T18264', [], makefile_test, ['T18264']) -test('T18302', expect_broken(18302), compile, ['']) test('T17853', [], multimod_compile, ['T17853', '-v0']) test('T19966', expect_broken(19966), compile, ['-fdefer-out-of-scope-variables']) test('T20472', normal, compile, ['']) |
