summaryrefslogtreecommitdiff
path: root/testsuite/tests/linear/should_compile/CSETest.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/linear/should_compile/CSETest.hs')
-rw-r--r--testsuite/tests/linear/should_compile/CSETest.hs12
1 files changed, 12 insertions, 0 deletions
diff --git a/testsuite/tests/linear/should_compile/CSETest.hs b/testsuite/tests/linear/should_compile/CSETest.hs
new file mode 100644
index 0000000000..3321dbd43d
--- /dev/null
+++ b/testsuite/tests/linear/should_compile/CSETest.hs
@@ -0,0 +1,12 @@
+{-# LANGUAGE LinearTypes #-}
+{-# LANGUAGE NoImplicitPrelude #-}
+{-# LANGUAGE UnicodeSyntax #-}
+{- This test makes sure that if two expressions with conflicting types are
+ CSEd then appropiate things happen. -}
+module CSETest where
+
+minimal :: a ⊸ a
+minimal x = x
+
+maximal :: a -> a
+maximal x = x