[commit: testsuite] master: Test Trac #2357 (0f8de47)
Simon Peyton Jones
simonpj at microsoft.com
Tue Aug 16 14:38:19 CEST 2011
Repository : ssh://darcs.haskell.org//srv/darcs/testsuite
On branch : master
http://hackage.haskell.org/trac/ghc/changeset/0f8de47242e9a8c2bcf7b8b40959efa7db0827c8
>---------------------------------------------------------------
commit 0f8de47242e9a8c2bcf7b8b40959efa7db0827c8
Author: Simon Peyton Jones <simonpj at microsoft.com>
Date: Tue Aug 16 13:38:06 2011 +0100
Test Trac #2357
>---------------------------------------------------------------
tests/typecheck/should_compile/T2357.hs | 7 +++++++
tests/typecheck/should_compile/all.T | 1 +
2 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/tests/typecheck/should_compile/T2357.hs b/tests/typecheck/should_compile/T2357.hs
new file mode 100644
index 0000000..cdc77c1
--- /dev/null
+++ b/tests/typecheck/should_compile/T2357.hs
@@ -0,0 +1,7 @@
+module Foo where
+
+f :: Show a => a
+(f, _) = undefined
+
+g :: Show a => a
+g = f
diff --git a/tests/typecheck/should_compile/all.T b/tests/typecheck/should_compile/all.T
index 78ac79a..862ac9f 100644
--- a/tests/typecheck/should_compile/all.T
+++ b/tests/typecheck/should_compile/all.T
@@ -347,3 +347,4 @@ test('GivenTypeSynonym', normal, compile, [''])
test('T5051', normal, compile, [''])
test('T3018', normal, compile, [''])
test('T5032', normal, compile, [''])
+test('T2357', normal, compile, [''])
More information about the Cvs-ghc
mailing list