diff --git a/testsuite/tests/typecheck/should_compile/T10177.hs b/testsuite/tests/typecheck/should_compile/T10177.hs new file mode 100644 index 0000000000000000000000000000000000000000..fd84396f676e07695ffbdfa907152c05c47fdfc2 --- /dev/null +++ b/testsuite/tests/typecheck/should_compile/T10177.hs @@ -0,0 +1,10 @@ +{-# LANGUAGE PolyKinds #-} +{-# LANGUAGE FlexibleContexts #-} +module T10177 where + +import Data.Typeable + +newtype V n a = V [a] + +class Typeable a => C a +instance (Typeable (V n), Typeable a) => C (V n a) diff --git a/testsuite/tests/typecheck/should_compile/all.T b/testsuite/tests/typecheck/should_compile/all.T index a4b497e99332fb98c70f029b4b165107bb1824b4..d4e71c709e82533c692cc887f211d805b78a8051 100644 --- a/testsuite/tests/typecheck/should_compile/all.T +++ b/testsuite/tests/typecheck/should_compile/all.T @@ -444,3 +444,4 @@ test('T10031', normal, compile, ['']) test('T10072', normal, compile_fail, ['']) test('T10100', normal, compile, ['']) test('T10156', normal, compile, ['']) +test('T10177', normal, compile, [''])