summaryrefslogtreecommitdiff
path: root/testsuite/tests/partial-sigs/should_compile/AddAndOr3.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/partial-sigs/should_compile/AddAndOr3.hs')
-rw-r--r--testsuite/tests/partial-sigs/should_compile/AddAndOr3.hs7
1 files changed, 7 insertions, 0 deletions
diff --git a/testsuite/tests/partial-sigs/should_compile/AddAndOr3.hs b/testsuite/tests/partial-sigs/should_compile/AddAndOr3.hs
new file mode 100644
index 0000000000..a1486bc1b2
--- /dev/null
+++ b/testsuite/tests/partial-sigs/should_compile/AddAndOr3.hs
@@ -0,0 +1,7 @@
+{-# LANGUAGE PartialTypeSignatures #-}
+module AddAndOr3 where
+
+addAndOr3 :: _ -> _ -> _
+addAndOr3 (a, b) (c, d) = (a `plus` d, b || c)
+ where plus :: Int -> Int -> Int
+ x `plus` y = x + y