Ticket #3371 (closed bug: fixed)
Spurious "Defined but not used" when using record wildcards
Description
Code such as
{-# LANGUAGE RecordWildCards #-}
module Test(bar) where
data Foo = Foo { a, b :: Int } deriving(Eq)
bar Foo{..} = print a
produces "defined but not used" warnings for both a and b, when compiled with -Wall.
The expected output is that either only a warning for b is given, or none is given.
Change History
Note: See
TracTickets for help on using
tickets.
