[commit: testsuite] master: Add testcase for #8565 (2f78a4e)
git at git.haskell.org
git at git.haskell.org
Tue Nov 26 11:25:46 UTC 2013
Repository : ssh://git@git.haskell.org/testsuite
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/2f78a4e2ad68b3dd0ca76405e650bc37fe99e00b/testsuite
>---------------------------------------------------------------
commit 2f78a4e2ad68b3dd0ca76405e650bc37fe99e00b
Author: Joachim Breitner <mail at joachim-breitner.de>
Date: Tue Nov 26 11:26:01 2013 +0000
Add testcase for #8565
>---------------------------------------------------------------
2f78a4e2ad68b3dd0ca76405e650bc37fe99e00b
tests/typecheck/should_compile/T8565.hs | 6 ++++++
tests/typecheck/should_compile/all.T | 1 +
2 files changed, 7 insertions(+)
diff --git a/tests/typecheck/should_compile/T8565.hs b/tests/typecheck/should_compile/T8565.hs
new file mode 100644
index 0000000..c7511c2
--- /dev/null
+++ b/tests/typecheck/should_compile/T8565.hs
@@ -0,0 +1,6 @@
+{-# LANGUAGE RankNTypes, GeneralizedNewtypeDeriving #-}
+module Foo where
+
+class C a where op :: (forall b. b -> a) -> a
+
+newtype T x = MkT x deriving( C )
diff --git a/tests/typecheck/should_compile/all.T b/tests/typecheck/should_compile/all.T
index bbbfac6..e71b6b9 100644
--- a/tests/typecheck/should_compile/all.T
+++ b/tests/typecheck/should_compile/all.T
@@ -413,3 +413,4 @@ test('TcCoercibleCompile', when(compiler_lt('ghc', '7.7'), skip), compile, [''])
test('T8392', normal, compile, [''])
test('T8474', normal, compile, [''])
test('T8563', normal, compile, [''])
+test('T8565', expect_broken(8565), compile, [''])
More information about the ghc-commits
mailing list