Test Trac #10463
authorSimon Peyton Jones <simonpj@microsoft.com>
Mon, 13 Jul 2015 12:20:56 +0000 (13:20 +0100)
committerSimon Peyton Jones <simonpj@microsoft.com>
Mon, 13 Jul 2015 12:20:56 +0000 (13:20 +0100)
was fixed along with Trac #10224

testsuite/tests/partial-sigs/should_compile/T10463.hs [new file with mode: 0644]
testsuite/tests/partial-sigs/should_compile/T10463.stderr [new file with mode: 0644]
testsuite/tests/partial-sigs/should_compile/all.T

diff --git a/testsuite/tests/partial-sigs/should_compile/T10463.hs b/testsuite/tests/partial-sigs/should_compile/T10463.hs
new file mode 100644 (file)
index 0000000..7279ecd
--- /dev/null
@@ -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 (file)
index 0000000..01fc4b3
--- /dev/null
@@ -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 ++ ""
index e649472..c86e14e 100644 (file)
@@ -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, [''])