summaryrefslogtreecommitdiff
path: root/testsuite/tests/pmcheck/should_compile/T17725.hs
blob: 8ed3856fa3794b95ad2d9ecd152f91f5a0429e3c (plain)
1
2
3
4
5
6
7
8
9
10
{-# OPTIONS_GHC -Wincomplete-patterns -fforce-recomp #-}
{-# LANGUAGE BangPatterns #-}
module Lib where

newtype IInt = IInt Int

f :: IInt -> Bool -> ()
f !(IInt _) True = ()
f (IInt 42) True = ()
f _         _    = ()