Commit 81c49562 authored by Ben Gamari's avatar Ben Gamari Committed by Ben Gamari

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
parent 0cad52d6
{-# 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))
T12966.hs:4:39: error:
• Expecting one more argument to ‘(~) (Maybe d)’
Expected a type, but ‘(~) (Maybe d)’ has kind ‘* -> Constraint’
• In the type ‘forall d. (c d) => ((~) (Maybe d))’
In the type declaration for ‘Maybeify’
......@@ -432,3 +432,4 @@ test('T12529', normal, compile_fail, [''])
test('T12729', normal, compile_fail, [''])
test('T12803', normal, compile_fail, [''])
test('T12042', extra_clean(['T12042a.hi', 'T12042a.o', 'T12042.hi-boot', 'T12042.o-boot']), multimod_compile_fail, ['T12042', ''])
test('T12966', normal, compile_fail, [''])
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment