summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Pickering <matthewtpickering@gmail.com>2021-12-02 11:40:17 +0000
committerMatthew Pickering <matthewtpickering@gmail.com>2021-12-30 16:27:47 +0000
commit6c0ebebd0a0f372a22b2df0101b5f8ed4b08eb31 (patch)
tree5564f064fabafac2743abdf744e0099a2cff0f70
parentaca5f8fc5cb1310b3159ba097716429f228bece3 (diff)
downloadhaskell-6c0ebebd0a0f372a22b2df0101b5f8ed4b08eb31.tar.gz
Add test
-rw-r--r--compiler/GHC/Core/TyCo/Tidy.hs2
-rw-r--r--testsuite/tests/typecheck/should_compile/T20732.hs6
-rw-r--r--testsuite/tests/typecheck/should_compile/all.T1
3 files changed, 8 insertions, 1 deletions
diff --git a/compiler/GHC/Core/TyCo/Tidy.hs b/compiler/GHC/Core/TyCo/Tidy.hs
index 9c8e90abe3..aa1fb87490 100644
--- a/compiler/GHC/Core/TyCo/Tidy.hs
+++ b/compiler/GHC/Core/TyCo/Tidy.hs
@@ -27,7 +27,7 @@ import GHC.Types.Var.Env
import GHC.Utils.Misc (strictMap)
import Data.List (mapAccumL)
-import {-# SOURCE #-} GHC.Tc.Utils.TcMType ( tidySkolemInfo )
+import {-# SOURCE #-} GHC.Tc.Utils.TcMType ( )
{-
%************************************************************************
diff --git a/testsuite/tests/typecheck/should_compile/T20732.hs b/testsuite/tests/typecheck/should_compile/T20732.hs
new file mode 100644
index 0000000000..8f4d126607
--- /dev/null
+++ b/testsuite/tests/typecheck/should_compile/T20732.hs
@@ -0,0 +1,6 @@
+{-# LANGUAGE PolyKinds, GADTs #-}
+
+module T20732 where
+
+data T (a :: k1) k2 (x :: k2) = MkT (S a k2 x)
+data S (b :: k3) k4 (y :: k4) = MkS (T b k4 y)
diff --git a/testsuite/tests/typecheck/should_compile/all.T b/testsuite/tests/typecheck/should_compile/all.T
index a3c89c0ab0..0a1bea4581 100644
--- a/testsuite/tests/typecheck/should_compile/all.T
+++ b/testsuite/tests/typecheck/should_compile/all.T
@@ -804,3 +804,4 @@ test('T20584b', normal, compile, [''])
test('T20588b', [extra_files(['T20588b.hs', 'T20588b.hs-boot', 'T20588b_aux.hs'])], multimod_compile, ['T20588b_aux.hs', '-v0'])
test('T20588d', [extra_files(['T20588d.hs', 'T20588d.hs-boot', 'T20588d_aux.hs'])], multimod_compile, ['T20588d_aux.hs', '-v0'])
test('T20661', [extra_files(['T20661.hs', 'T20661.hs-boot', 'T20661_aux.hs'])], multimod_compile, ['T20661_aux.hs', '-v0'])
+test('T20732', normal, compile, [''])