diff options
author | Simon Peyton Jones <simonpj@microsoft.com> | 2017-09-14 17:20:14 +0100 |
---|---|---|
committer | Simon Peyton Jones <simonpj@microsoft.com> | 2017-09-14 17:20:22 +0100 |
commit | 93da9f95b0c921f0d50a34bd1202c6428ff7ba5b (patch) | |
tree | c31bcc515bc5c265bdd8ce8d81df4e357df8691a | |
parent | b6b56dd1b6adc9051593955eecaef85c9d6e96b8 (diff) | |
download | haskell-93da9f95b0c921f0d50a34bd1202c6428ff7ba5b.tar.gz |
Add test for Trac #14232
-rw-r--r-- | testsuite/tests/typecheck/should_fail/T14232.hs | 4 | ||||
-rw-r--r-- | testsuite/tests/typecheck/should_fail/T14232.stderr | 4 | ||||
-rw-r--r-- | testsuite/tests/typecheck/should_fail/all.T | 1 |
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, ['']) |