summaryrefslogtreecommitdiff
path: root/testsuite/tests/ghci/scripts/all.T
diff options
context:
space:
mode:
authorMatthew Pickering <matthewtpickering@gmail.com>2022-01-03 15:53:43 +0000
committerMarge Bot <ben+marge-bot@smart-cactus.org>2022-01-18 16:12:50 -0500
commit310424d05836ee8788c7c79f98243ef92330f5f1 (patch)
treeb40ca68ef5807c92dcce745081ac6bc4011f1d65 /testsuite/tests/ghci/scripts/all.T
parent18c797b80b938b648704f118dacbfe8655aaeea5 (diff)
downloadhaskell-310424d05836ee8788c7c79f98243ef92330f5f1.tar.gz
Correct type of static forms in hsExprType
The simplest way to do this seemed to be to persist the whole type in the extension field from the typechecker so that the few relevant places * Desugaring can work out the return type by splitting this type rather than calling `dsExpr` (slightly more efficient). * hsExprType can just return the correct type. * Zonking has to now zonk the type as well The other option we considered was wiring in StaticPtr but that is actually quite tricky because StaticPtr refers to StaticPtrInfo which has field selectors (which we can't easily wire in). Fixes #20150
Diffstat (limited to 'testsuite/tests/ghci/scripts/all.T')
-rwxr-xr-xtestsuite/tests/ghci/scripts/all.T1
1 files changed, 1 insertions, 0 deletions
diff --git a/testsuite/tests/ghci/scripts/all.T b/testsuite/tests/ghci/scripts/all.T
index 5e9aea056d..71e0ea80a5 100755
--- a/testsuite/tests/ghci/scripts/all.T
+++ b/testsuite/tests/ghci/scripts/all.T
@@ -354,3 +354,4 @@ test('T20473b', normal, ghci_script, ['T20473b.script'])
test('T20587', [extra_files(['../shell.hs'])], ghci_script,
['T20587.script'])
test('T20909', normal, ghci_script, ['T20909.script'])
+test('T20150', normal, ghci_script, ['T20150.script'])