diff options
author | Ryan Scott <ryan.gl.scott@gmail.com> | 2017-05-12 08:54:30 -0400 |
---|---|---|
committer | Ryan Scott <ryan.gl.scott@gmail.com> | 2017-05-12 08:54:30 -0400 |
commit | 01af8aee30c743ab505e164ac9aa02149fbe4b9e (patch) | |
tree | cba5d5954521e1e75978f5b1521f8dc4d865821c /testsuite/tests/typecheck/should_fail/T12083b.hs | |
parent | 09938f29cd615a3073f49f8b628650693e2f29e9 (diff) | |
download | haskell-01af8aee30c743ab505e164ac9aa02149fbe4b9e.tar.gz |
Add regression tests for #12083
Summary:
Commit 0c9d9dec0a924a4f34f4cff26d004143c028861a (the fix for #13271) fixed the
programs in #12083. This adds regression tests for them.
Test Plan: make test TEST="T12083a T12083b"
Reviewers: austin, bgamari
Subscribers: rwbarton, thomie
GHC Trac Issues: #12083
Differential Revision: https://phabricator.haskell.org/D3573
Diffstat (limited to 'testsuite/tests/typecheck/should_fail/T12083b.hs')
-rw-r--r-- | testsuite/tests/typecheck/should_fail/T12083b.hs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/testsuite/tests/typecheck/should_fail/T12083b.hs b/testsuite/tests/typecheck/should_fail/T12083b.hs new file mode 100644 index 0000000000..3992db3f9e --- /dev/null +++ b/testsuite/tests/typecheck/should_fail/T12083b.hs @@ -0,0 +1,9 @@ +{-# LANGUAGE GADTs #-} + +module T12083b where + +class Class a where + test :: a -> (Eq a => r) -> r + +data P a b where + Con :: (Class a, a ~ b) => P a b |