Add test for #11319
authorReid Barton <rwbarton@gmail.com>
Fri, 12 Feb 2016 02:04:17 +0000 (21:04 -0500)
committerReid Barton <rwbarton@gmail.com>
Fri, 12 Feb 2016 02:04:59 +0000 (21:04 -0500)
testsuite/tests/typecheck/should_compile/T11319.hs [new file with mode: 0644]
testsuite/tests/typecheck/should_compile/all.T

diff --git a/testsuite/tests/typecheck/should_compile/T11319.hs b/testsuite/tests/typecheck/should_compile/T11319.hs
new file mode 100644 (file)
index 0000000..5f09d22
--- /dev/null
@@ -0,0 +1,6 @@
+{-# LANGUAGE ImpredicativeTypes #-}
+
+module T11319 where
+
+f :: Monad m => m (Maybe a)
+f = return Nothing
index 9584c84..f7c5644 100644 (file)
@@ -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, [''])