summaryrefslogtreecommitdiff
path: root/testsuite/tests/deSugar
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/deSugar')
-rw-r--r--testsuite/tests/deSugar/should_compile/T19883.hs17
-rw-r--r--testsuite/tests/deSugar/should_compile/all.T1
2 files changed, 18 insertions, 0 deletions
diff --git a/testsuite/tests/deSugar/should_compile/T19883.hs b/testsuite/tests/deSugar/should_compile/T19883.hs
new file mode 100644
index 0000000000..80cfc9860c
--- /dev/null
+++ b/testsuite/tests/deSugar/should_compile/T19883.hs
@@ -0,0 +1,17 @@
+{-# Language DataKinds #-}
+{-# Language NoImplicitPrelude #-}
+{-# Language RebindableSyntax #-}
+
+module T19883 where
+
+import GHC.Types
+import qualified Prelude
+
+class Eq (a :: TYPE r) where
+ (==) :: a -> a -> Bool
+
+class Num (a :: TYPE r) where
+ fromInteger :: Prelude.Integer -> a
+
+roundDef :: forall (a :: TYPE IntRep) . (Eq a, Num a) => a -> ()
+roundDef 0 = ()
diff --git a/testsuite/tests/deSugar/should_compile/all.T b/testsuite/tests/deSugar/should_compile/all.T
index 6e6f486b4a..89583f4bb8 100644
--- a/testsuite/tests/deSugar/should_compile/all.T
+++ b/testsuite/tests/deSugar/should_compile/all.T
@@ -111,3 +111,4 @@ test('T13208', [], makefile_test, ['T13208'])
test('T16615', normal, compile, ['-ddump-ds -dsuppress-uniques'])
test('T18112', [grep_errmsg('cast')], compile, ['-ddump-ds'])
test('T19969', normal, compile, ['-ddump-simpl -dsuppress-uniques'])
+test('T19883', normal, compile, [''])