diff --git a/testsuite/tests/polykinds/T5937.hs b/testsuite/tests/polykinds/T5937.hs new file mode 100644 index 0000000000000000000000000000000000000000..20bc59e6f1f772d9972cadbf3e3d50771092d4dd --- /dev/null +++ b/testsuite/tests/polykinds/T5937.hs @@ -0,0 +1,6 @@ +{-# LANGUAGE PolyKinds, KindSignatures, DataKinds, GADTs #-} +module T5937 where + +data SMaybe :: (k -> *) -> Maybe k -> * where + SNothing :: SMaybe s 'Nothing + SJust :: s a -> SMaybe s ('Just a) diff --git a/testsuite/tests/polykinds/all.T b/testsuite/tests/polykinds/all.T index 5767f8c9aa739ae1c9e4688316e549801882e840..d415a76dc8254b56bf6c601bd55a0cf7f8f0289f 100644 --- a/testsuite/tests/polykinds/all.T +++ b/testsuite/tests/polykinds/all.T @@ -29,4 +29,5 @@ test('T5862', normal, compile, ['']) test('T5912', normal, compile, ['']) test('T5881', normal, run_command, ['$MAKE -s --no-print-directory T5881']) test('T5716', normal, compile_fail, ['']) +test('T5937', normal, compile, [''])