[Git][ghc/ghc][wip/T22924] Add test for #22924
Simon Peyton Jones (@simonpj)
gitlab at gitlab.haskell.org
Wed Feb 8 23:17:19 UTC 2023
Simon Peyton Jones pushed to branch wip/T22924 at Glasgow Haskell Compiler / GHC
Commits:
88314953 by Simon Peyton Jones at 2023-02-08T23:18:02+00:00
Add test for #22924
- - - - -
2 changed files:
- + testsuite/tests/typecheck/should_compile/T22924.hs
- testsuite/tests/typecheck/should_compile/all.T
Changes:
=====================================
testsuite/tests/typecheck/should_compile/T22924.hs
=====================================
@@ -0,0 +1,9 @@
+{-# LANGUAGE FlexibleInstances #-}
+module G where
+
+import Data.Functor.Const( Const )
+import Data.Coerce
+
+f :: Coercible (f a) a => Const a () -> Const (f a) ()
+f = coerce
+
=====================================
testsuite/tests/typecheck/should_compile/all.T
=====================================
@@ -857,3 +857,4 @@ test('T22647', normal, compile, [''])
test('T19577', normal, compile, [''])
test('T22383', normal, compile, [''])
test('T21501', normal, compile, [''])
+test('T22924', normal, compile, [''])
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/8831495325a680e9dc23fbc9e8037ee21557a91b
--
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/8831495325a680e9dc23fbc9e8037ee21557a91b
You're receiving this email because of your account on gitlab.haskell.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20230208/0fbc2924/attachment-0001.html>
More information about the ghc-commits
mailing list