diff options
Diffstat (limited to 'testsuite/tests/typecheck/should_compile/InlinePatSyn_InlineMatcher.hs')
-rw-r--r-- | testsuite/tests/typecheck/should_compile/InlinePatSyn_InlineMatcher.hs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/testsuite/tests/typecheck/should_compile/InlinePatSyn_InlineMatcher.hs b/testsuite/tests/typecheck/should_compile/InlinePatSyn_InlineMatcher.hs new file mode 100644 index 0000000000..1f343ab1d7 --- /dev/null +++ b/testsuite/tests/typecheck/should_compile/InlinePatSyn_InlineMatcher.hs @@ -0,0 +1,10 @@ +{-# LANGUAGE PatternSynonyms #-} + +module InlinePatSyn_InlineMatcher where + +-- Pattern with "INLINE" pragma, both builder and matcher should be inlined +pattern InlinePattern a = [[[[a]]]] +{-# INLINE InlinePattern #-} + +testInMatcher (InlinePattern x) = 1 +testInMatcher _ = 2 |