diff options
author | Ryan Scott <ryan.gl.scott@gmail.com> | 2018-05-18 11:50:07 -0400 |
---|---|---|
committer | Ryan Scott <ryan.gl.scott@gmail.com> | 2018-05-18 11:50:18 -0400 |
commit | 819b9cfd21a1773091cec4e34716a0fd7c7d05c6 (patch) | |
tree | 7d40e303be618f2b9f454ef736263e450ad9c05c /testsuite/tests/typecheck/should_fail/T12563.stderr | |
parent | 5d3b15ecbf17b7747c2f7313a981c60a2d22904d (diff) | |
download | haskell-819b9cfd21a1773091cec4e34716a0fd7c7d05c6.tar.gz |
Add regression tests for #11515 and #12563
Happily, both of these issues appear to have been fixed in GHC 8.2.
Let's add regression tests for them to ensure that they stay fixed.
Diffstat (limited to 'testsuite/tests/typecheck/should_fail/T12563.stderr')
-rw-r--r-- | testsuite/tests/typecheck/should_fail/T12563.stderr | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/testsuite/tests/typecheck/should_fail/T12563.stderr b/testsuite/tests/typecheck/should_fail/T12563.stderr new file mode 100644 index 0000000000..f32e99d1f0 --- /dev/null +++ b/testsuite/tests/typecheck/should_fail/T12563.stderr @@ -0,0 +1,11 @@ + +T12563.hs:7:15: error: + • Cannot instantiate unification variable ‘p0’ + with a type involving foralls: (forall a. f0 a) -> f0 r0 + GHC doesn't yet support impredicative polymorphism + • In the first argument of ‘foo’, namely ‘g’ + In the expression: foo g + In the expression: \ g -> foo g + • Relevant bindings include + g :: p0 (bound at T12563.hs:7:6) + x :: p0 -> f0 r0 (bound at T12563.hs:7:1) |