diff --git a/testsuite/tests/typecheck/should_compile/T10347.hs b/testsuite/tests/typecheck/should_compile/T10347.hs new file mode 100644 index 0000000000000000000000000000000000000000..9187a931959c76b8819dcd61cd374f9b8f16cdd9 --- /dev/null +++ b/testsuite/tests/typecheck/should_compile/T10347.hs @@ -0,0 +1,10 @@ +{-# LANGUAGE -fwarn-unusued-bindings #-} + +module T10347 (N, mkN) where + +import Data.Coerce + +newtype N a = MkN Int + +mkN :: Int -> N a +mkN = coerce diff --git a/testsuite/tests/typecheck/should_compile/all.T b/testsuite/tests/typecheck/should_compile/all.T index eff84032b1e3b3ea3a68ff6d0f36cd84e721827b..6f34db479965404bbae6271052462425209216a0 100644 --- a/testsuite/tests/typecheck/should_compile/all.T +++ b/testsuite/tests/typecheck/should_compile/all.T @@ -474,3 +474,4 @@ test('T10632', normal, compile, ['']) test('T10642', normal, compile, ['']) test('T10744', normal, compile, ['']) test('update-existential', normal, compile, ['']) +test('T10347', expect_broken(10347), compile, [''])