summaryrefslogtreecommitdiff
path: root/testsuite/tests/polykinds/all.T
diff options
context:
space:
mode:
authorSimon Peyton Jones <simonpj@microsoft.com>2018-10-03 16:35:09 +0100
committerSimon Peyton Jones <simonpj@microsoft.com>2018-10-04 15:37:58 +0100
commit2f09753f96207c12efd43090f5de55b05aef35d3 (patch)
tree4093c0be62785abc174e1ff2e1ea781cc07789b4 /testsuite/tests/polykinds/all.T
parent37ef7031b95c97e7c8bc1d14bc95554a3bac2873 (diff)
downloadhaskell-2f09753f96207c12efd43090f5de55b05aef35d3.tar.gz
Distinguish Inferred from Specified tyvars
In a declared type we need to distinguish between Inferred and Specified type variables. This was exposed by Trac #15592. See Note [Work out final tyConBinders] in TcTyClsDecls. I had to change the definition of HasField in GHC.Records to class HasField x r a | x r -> a where so as to have an /inferred/ kind argument rather than a specfied one. So HasField :: forall {k}. k -> * -> * -> Constraint
Diffstat (limited to 'testsuite/tests/polykinds/all.T')
-rw-r--r--testsuite/tests/polykinds/all.T1
1 files changed, 1 insertions, 0 deletions
diff --git a/testsuite/tests/polykinds/all.T b/testsuite/tests/polykinds/all.T
index ae4ee51a21..010d0ac703 100644
--- a/testsuite/tests/polykinds/all.T
+++ b/testsuite/tests/polykinds/all.T
@@ -193,3 +193,4 @@ test('T15116a', normal, compile_fail, [''])
test('T15170', normal, compile, [''])
test('T14939', normal, compile, ['-O'])
test('T15577', normal, compile_fail, ['-O'])
+test('T15592', normal, compile, [''])