Commit d7335f74 authored by Simon Peyton Jones's avatar Simon Peyton Jones

Test Trac #10463

was fixed along with Trac #10224
parent 875723b3
{-# LANGUAGE ScopedTypeVariables, PartialTypeSignatures #-}
module T10463 where
f (x :: _) = x ++ ""
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 ++ ""
...@@ -49,3 +49,4 @@ test('WarningWildcardInstantiations', normal, compile, ['-ddump-types']) ...@@ -49,3 +49,4 @@ test('WarningWildcardInstantiations', normal, compile, ['-ddump-types'])
test('T10403', normal, compile, ['']) test('T10403', normal, compile, [''])
test('T10438', normal, compile, ['']) test('T10438', normal, compile, [''])
test('T10519', normal, compile, ['']) test('T10519', normal, compile, [''])
test('T10463', normal, compile, [''])
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment