From 81c49562570a403e8470f73f4decd3e0cb891983 Mon Sep 17 00:00:00 2001 From: Ben Gamari Date: Thu, 15 Dec 2016 15:27:01 -0500 Subject: testsuite: Add test for #12966 This isn't exactly a typechecker test, but it was the most appropriate directory I could think of. The issue being tested is fixed. Test Plan: Validate Reviewers: austin Subscribers: thomie Differential Revision: https://phabricator.haskell.org/D2857 GHC Trac Issues: #12966 --- testsuite/tests/typecheck/should_fail/T12966.hs | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 testsuite/tests/typecheck/should_fail/T12966.hs (limited to 'testsuite/tests/typecheck/should_fail/T12966.hs') diff --git a/testsuite/tests/typecheck/should_fail/T12966.hs b/testsuite/tests/typecheck/should_fail/T12966.hs new file mode 100644 index 0000000000..27bcff6708 --- /dev/null +++ b/testsuite/tests/typecheck/should_fail/T12966.hs @@ -0,0 +1,4 @@ +{-# LANGUAGE RankNTypes #-} +module T12966 where +-- This should fail with a proper error message, not a compiler panic. +type Maybeify c = forall d. (c d) => ((~) (Maybe d)) -- cgit v1.2.1