diff options
Diffstat (limited to 'testsuite/tests/linear/should_compile/TupSection.hs')
-rw-r--r-- | testsuite/tests/linear/should_compile/TupSection.hs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/testsuite/tests/linear/should_compile/TupSection.hs b/testsuite/tests/linear/should_compile/TupSection.hs new file mode 100644 index 0000000000..ea401e6e97 --- /dev/null +++ b/testsuite/tests/linear/should_compile/TupSection.hs @@ -0,0 +1,13 @@ +{-# LANGUAGE LinearTypes #-} +{-# LANGUAGE TupleSections #-} +module TupSection where +{- +inplace/bin/ghc-stage1 -O2 -dcore-lint +-} + +myAp :: (a -> b) -> a -> b +myAp f x = f x + +foo = myAp (,()) () + +qux = ("go2",) $ () |