summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorReid Barton <rwbarton@gmail.com>2016-02-11 21:04:17 -0500
committerReid Barton <rwbarton@gmail.com>2016-02-11 21:04:59 -0500
commitb7dfbb45b6ac7849dbb7cf414d507fd65d1e7ed4 (patch)
tree6bc319da1097f3bf5af716b9fa883d88e913e315 /testsuite
parentdbf72dbc6e49b3db7f2337a7a41e95c1d0169163 (diff)
downloadhaskell-b7dfbb45b6ac7849dbb7cf414d507fd65d1e7ed4.tar.gz
Add test for #11319
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/tests/typecheck/should_compile/T11319.hs6
-rw-r--r--testsuite/tests/typecheck/should_compile/all.T1
2 files changed, 7 insertions, 0 deletions
diff --git a/testsuite/tests/typecheck/should_compile/T11319.hs b/testsuite/tests/typecheck/should_compile/T11319.hs
new file mode 100644
index 0000000000..5f09d22f33
--- /dev/null
+++ b/testsuite/tests/typecheck/should_compile/T11319.hs
@@ -0,0 +1,6 @@
+{-# LANGUAGE ImpredicativeTypes #-}
+
+module T11319 where
+
+f :: Monad m => m (Maybe a)
+f = return Nothing
diff --git a/testsuite/tests/typecheck/should_compile/all.T b/testsuite/tests/typecheck/should_compile/all.T
index 9584c84cba..f7c56449c1 100644
--- a/testsuite/tests/typecheck/should_compile/all.T
+++ b/testsuite/tests/typecheck/should_compile/all.T
@@ -500,6 +500,7 @@ test('T11462',
test('T11480', normal, compile, [''])
test('RebindHR', normal, compile, [''])
test('RebindNegate', normal, compile, [''])
+test('T11319', expect_broken(11319), compile, [''])
test('T11397', normal, compile, [''])
test('T11458', normal, compile, [''])
test('T11524', normal, compile, [''])