summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Peyton Jones <simonpj@microsoft.com>2017-09-14 17:20:14 +0100
committerSimon Peyton Jones <simonpj@microsoft.com>2017-09-14 17:20:22 +0100
commit93da9f95b0c921f0d50a34bd1202c6428ff7ba5b (patch)
treec31bcc515bc5c265bdd8ce8d81df4e357df8691a
parentb6b56dd1b6adc9051593955eecaef85c9d6e96b8 (diff)
downloadhaskell-93da9f95b0c921f0d50a34bd1202c6428ff7ba5b.tar.gz
Add test for Trac #14232
-rw-r--r--testsuite/tests/typecheck/should_fail/T14232.hs4
-rw-r--r--testsuite/tests/typecheck/should_fail/T14232.stderr4
-rw-r--r--testsuite/tests/typecheck/should_fail/all.T1
3 files changed, 9 insertions, 0 deletions
diff --git a/testsuite/tests/typecheck/should_fail/T14232.hs b/testsuite/tests/typecheck/should_fail/T14232.hs
new file mode 100644
index 0000000000..79da2cc7b5
--- /dev/null
+++ b/testsuite/tests/typecheck/should_fail/T14232.hs
@@ -0,0 +1,4 @@
+module T14232 where
+
+f :: (String -> a) String -> a
+f g s = g s
diff --git a/testsuite/tests/typecheck/should_fail/T14232.stderr b/testsuite/tests/typecheck/should_fail/T14232.stderr
new file mode 100644
index 0000000000..a497be7b19
--- /dev/null
+++ b/testsuite/tests/typecheck/should_fail/T14232.stderr
@@ -0,0 +1,4 @@
+
+T14232.hs:3:6: error:
+ • Expected kind ‘* -> *’, but ‘String -> a’ has kind ‘*’
+ • In the type signature: f :: (String -> a) String -> a
diff --git a/testsuite/tests/typecheck/should_fail/all.T b/testsuite/tests/typecheck/should_fail/all.T
index 5fbbee0e21..07a893bb53 100644
--- a/testsuite/tests/typecheck/should_fail/all.T
+++ b/testsuite/tests/typecheck/should_fail/all.T
@@ -455,3 +455,4 @@ test('T13902', normal, compile_fail, [''])
test('T11963', normal, compile_fail, [''])
test('T14000', normal, compile_fail, [''])
test('T14055', normal, compile_fail, [''])
+test('T14232', normal, compile_fail, [''])