diff options
author | sheaf <sam.derbyshire@gmail.com> | 2022-01-04 12:59:47 +0100 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2022-01-04 19:56:13 -0500 |
commit | 5111028ee0910305d94671397b8ccc5b60ed296b (patch) | |
tree | fa334ff1dc59669eae86abeb5a03102efc14628d /testsuite/tests/module/mod132.stderr | |
parent | 7f10686e61e49c89baf45df92eb24ad3504492f7 (diff) | |
download | haskell-5111028ee0910305d94671397b8ccc5b60ed296b.tar.gz |
Check quoted TH names are in the correct namespace
When quoting (using a TH single or double quote) a built-in
name such as the list constructor (:), we didn't always check
that the resulting 'Name' was in the correct namespace.
This patch adds a check in GHC.Rename.Splice to ensure
we get a Name that is in the term-level/type-level namespace,
when using a single/double tick, respectively.
Fixes #20884.
Diffstat (limited to 'testsuite/tests/module/mod132.stderr')
-rw-r--r-- | testsuite/tests/module/mod132.stderr | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/testsuite/tests/module/mod132.stderr b/testsuite/tests/module/mod132.stderr index 31d9c8eeb6..0c901d090c 100644 --- a/testsuite/tests/module/mod132.stderr +++ b/testsuite/tests/module/mod132.stderr @@ -1,8 +1,8 @@ mod132.hs:6:7: error: - • Illegal term-level use of the type constructor ‘Foo’ - imported from ‘Mod132_B’ at mod132.hs:4:1-15 - (and originally defined in ‘Mod132_A’ at Mod132_A.hs:3:1-14) - Perhaps you meant variable ‘foo’ (line 6) + • Illegal term-level use of the type constructor or class ‘Foo’ + • imported from ‘Mod132_B’ at mod132.hs:4:1-15 + (and originally defined in ‘Mod132_A’ at Mod132_A.hs:3:1-14) + • Perhaps you meant variable ‘foo’ (line 6) • In the expression: Foo In an equation for ‘foo’: foo = Foo |