summaryrefslogtreecommitdiff
path: root/testsuite/tests/patsyn/should_fail/unboxed-bind.hs
blob: ef1b070d49c7fdfc34bc318e83c89a37f4725c4d (plain)
1
2
3
4
5
6
7
8
9
10
{-# LANGUAGE PatternSynonyms, MagicHash #-}
module ShouldFail where

import GHC.Base

data Foo = MkFoo Int# Int#

pattern P x = MkFoo 0# x

f x = let P arg = x in arg