diff options
author | Simon Peyton Jones <simonpj@microsoft.com> | 2015-07-13 13:20:56 +0100 |
---|---|---|
committer | Simon Peyton Jones <simonpj@microsoft.com> | 2015-07-13 13:20:56 +0100 |
commit | d7335f74744a78bb468326b13fdd8b0c471eb71f (patch) | |
tree | cb996d0b3fb40f26b0e6f8aaa159bc4e16da16d0 /testsuite/tests/partial-sigs/should_compile | |
parent | 875723b336ef3f79a6196a509c65c3d3b7034fa6 (diff) | |
download | haskell-d7335f74744a78bb468326b13fdd8b0c471eb71f.tar.gz |
Test Trac #10463
was fixed along with Trac #10224
Diffstat (limited to 'testsuite/tests/partial-sigs/should_compile')
-rw-r--r-- | testsuite/tests/partial-sigs/should_compile/T10463.hs | 5 | ||||
-rw-r--r-- | testsuite/tests/partial-sigs/should_compile/T10463.stderr | 8 | ||||
-rw-r--r-- | testsuite/tests/partial-sigs/should_compile/all.T | 1 |
3 files changed, 14 insertions, 0 deletions
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, ['']) |