From f3f45895ccafd9b87566c063626cf516c0a13123 Mon Sep 17 00:00:00 2001 From: Simon Peyton Jones <simonpj@microsoft.com> Date: Tue, 1 Jul 2014 15:23:30 +0100 Subject: [PATCH] Test Trac #9222 (cherry picked from commit 127c45ea30eaee6b5244b3f30aaa701d0ad327ac) Conflicts: testsuite/tests/polykinds/all.T --- testsuite/tests/polykinds/T9222.hs | 7 +++++++ testsuite/tests/polykinds/all.T | 1 + 2 files changed, 8 insertions(+) create mode 100644 testsuite/tests/polykinds/T9222.hs diff --git a/testsuite/tests/polykinds/T9222.hs b/testsuite/tests/polykinds/T9222.hs new file mode 100644 index 000000000000..df112519ac6b --- /dev/null +++ b/testsuite/tests/polykinds/T9222.hs @@ -0,0 +1,7 @@ +{-# LANGUAGE RankNTypes, GADTs, DataKinds, PolyKinds, TypeOperators, TypeFamilies #-} +module T9222 where + +import Data.Proxy + +data Want :: (i,j) -> * where + Want :: (a ~ '(b,c) => Proxy b) -> Want a diff --git a/testsuite/tests/polykinds/all.T b/testsuite/tests/polykinds/all.T index 96faa6725ba0..de73b371eada 100644 --- a/testsuite/tests/polykinds/all.T +++ b/testsuite/tests/polykinds/all.T @@ -101,3 +101,4 @@ test('T7481', normal, compile_fail,['']) test('T8705', normal, compile, ['']) test('T8985', normal, compile, ['']) test('T9106', normal, compile_fail, ['']) +test('T9222', normal, compile, ['']) -- GitLab