summaryrefslogtreecommitdiff
path: root/testsuite/tests/patsyn/should_fail/as-pattern.hs
blob: f3ec9c902979da2e0664c1e5b0eea72c222e9492 (plain)
1
2
3
4
5
{-# LANGUAGE PatternSynonyms #-}
module ShouldFail where

-- This is now ok (following GHC proposal #94)
pattern P x y <- x@(Just y)