From d7335f74744a78bb468326b13fdd8b0c471eb71f Mon Sep 17 00:00:00 2001 From: Simon Peyton Jones Date: Mon, 13 Jul 2015 13:20:56 +0100 Subject: [PATCH] Test Trac #10463 was fixed along with Trac #10224 --- 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(+) create mode 100644 testsuite/tests/partial-sigs/should_compile/T10463.hs create mode 100644 testsuite/tests/partial-sigs/should_compile/T10463.stderr 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 0000000000..7279ecd2e2 --- /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 0000000000..01fc4b3214 --- /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 e649472756..c86e14ed38 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, ['']) -- GitLab