From 91d5c4d4059e2aca9ad717ff8bd4c8f221ff24f8 Mon Sep 17 00:00:00 2001 From: Simon Peyton Jones Date: Wed, 22 May 2013 17:44:47 +0100 Subject: [PATCH] Test Trac #7916 --- tests/polykinds/T7916.hs | 9 +++++++++ tests/polykinds/all.T | 1 + 2 files changed, 10 insertions(+) create mode 100644 tests/polykinds/T7916.hs diff --git a/tests/polykinds/T7916.hs b/tests/polykinds/T7916.hs new file mode 100644 index 000000000..b9efa8943 --- /dev/null +++ b/tests/polykinds/T7916.hs @@ -0,0 +1,9 @@ +{-# LANGUAGE PolyKinds, ExplicitForAll #-} +module T7916 where + + +f :: forall (m :: k -> *) (a :: k). m a -> m a +f = id + +-- g :: forall (m :: k -> *) (a :: k). m a -> m a +g x = f x diff --git a/tests/polykinds/all.T b/tests/polykinds/all.T index 972d4a798..00007b149 100644 --- a/tests/polykinds/all.T +++ b/tests/polykinds/all.T @@ -86,3 +86,4 @@ test('T7594', normal, compile_fail,['']) test('T7524', normal, compile_fail,['']) test('T7601', normal, compile,['']) test('T7805', normal, compile_fail,['']) +test('T7916', normal, compile,[''])