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,[''])