[commit: ghc] master: Test Trac #10463 (d7335f7)

git at git.haskell.org git at git.haskell.org
Mon Jul 13 12:21:23 UTC 2015


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/d7335f74744a78bb468326b13fdd8b0c471eb71f/ghc

>---------------------------------------------------------------

commit d7335f74744a78bb468326b13fdd8b0c471eb71f
Author: Simon Peyton Jones <simonpj at microsoft.com>
Date:   Mon Jul 13 13:20:56 2015 +0100

    Test Trac #10463
    
    was fixed along with Trac #10224


>---------------------------------------------------------------

d7335f74744a78bb468326b13fdd8b0c471eb71f
 testsuite/tests/partial-sigs/should_compile/T10463.hs     | 5 +++++
 testsuite/tests/partial-sigs/should_compile/T10463.stderr | 8 ++++++++
 testsuite/tests/partial-sigs/should_compile/all.T         | 1 +
 3 files changed, 14 insertions(+)

diff --git a/testsuite/tests/partial-sigs/should_compile/T10463.hs b/testsuite/tests/partial-sigs/should_compile/T10463.hs
new file mode 100644
index 0000000..7279ecd
--- /dev/null
+++ b/testsuite/tests/partial-sigs/should_compile/T10463.hs
@@ -0,0 +1,5 @@
+{-# LANGUAGE ScopedTypeVariables, PartialTypeSignatures #-}
+
+module T10463 where
+
+f (x :: _) = x ++ ""
diff --git a/testsuite/tests/partial-sigs/should_compile/T10463.stderr b/testsuite/tests/partial-sigs/should_compile/T10463.stderr
new file mode 100644
index 0000000..01fc4b3
--- /dev/null
+++ b/testsuite/tests/partial-sigs/should_compile/T10463.stderr
@@ -0,0 +1,8 @@
+
+T10463.hs:5:9: warning:
+    Found type wildcard ‘_’ standing for ‘[Char]’
+    Relevant bindings include
+      f :: [Char] -> [Char] (bound at T10463.hs:5:1)
+    In a pattern type signature: _
+    In the pattern: x :: _
+    In an equation for ‘f’: f (x :: _) = x ++ ""
diff --git a/testsuite/tests/partial-sigs/should_compile/all.T b/testsuite/tests/partial-sigs/should_compile/all.T
index e649472..c86e14e 100644
--- a/testsuite/tests/partial-sigs/should_compile/all.T
+++ b/testsuite/tests/partial-sigs/should_compile/all.T
@@ -49,3 +49,4 @@ test('WarningWildcardInstantiations', normal, compile, ['-ddump-types'])
 test('T10403', normal, compile, [''])
 test('T10438', normal, compile, [''])
 test('T10519', normal, compile, [''])
+test('T10463', normal, compile, [''])



More information about the ghc-commits mailing list