[Git][ghc/ghc][wip/test-11506] Add a regression test for #11506

Krzysztof Gogolewski gitlab at gitlab.haskell.org
Fri May 15 13:31:49 UTC 2020



Krzysztof Gogolewski pushed to branch wip/test-11506 at Glasgow Haskell Compiler / GHC


Commits:
00132ba0 by Krzysztof Gogolewski at 2020-05-15T15:31:28+02:00
Add a regression test for #11506

The testcase works now.
See explanation in https://gitlab.haskell.org/ghc/ghc/issues/11506#note_273202

- - - - -


2 changed files:

- + testsuite/tests/typecheck/should_compile/T11506.hs
- testsuite/tests/typecheck/should_compile/all.T


Changes:

=====================================
testsuite/tests/typecheck/should_compile/T11506.hs
=====================================
@@ -0,0 +1,13 @@
+{-# LANGUAGE PolyKinds, ExistentialQuantification, ScopedTypeVariables,
+             TypeFamilies, TypeInType #-}
+
+module T11506 where
+
+import Data.Proxy
+import Data.Kind
+
+type family ProxyType where ProxyType = (Proxy :: Type -> Type)
+
+data T = forall a. MkT (ProxyType a)
+
+foo (MkT (_ :: Proxy a)) = const True (undefined :: a)


=====================================
testsuite/tests/typecheck/should_compile/all.T
=====================================
@@ -497,6 +497,7 @@ test('RebindNegate', normal, compile, [''])
 test('T11319', normal, compile, [''])
 test('T11397', normal, compile, [''])
 test('T11458', normal, compile, [''])
+test('T11506', normal, compile, [''])
 test('T11524', normal, compile, [''])
 test('T11552', normal, compile, [''])
 test('T11246', normal, compile, [''])



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/00132ba08b2decf03273b389c4483cc44768cf76

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/00132ba08b2decf03273b389c4483cc44768cf76
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/20200515/2db55141/attachment-0001.html>


More information about the ghc-commits mailing list