summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_compile/tc243.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/typecheck/should_compile/tc243.hs')
-rw-r--r--testsuite/tests/typecheck/should_compile/tc243.hs11
1 files changed, 11 insertions, 0 deletions
diff --git a/testsuite/tests/typecheck/should_compile/tc243.hs b/testsuite/tests/typecheck/should_compile/tc243.hs
new file mode 100644
index 0000000000..10bf4d1b52
--- /dev/null
+++ b/testsuite/tests/typecheck/should_compile/tc243.hs
@@ -0,0 +1,11 @@
+
+{-# OPTIONS_GHC -Wall #-}
+
+module Bug where
+
+-- When we warn about this, we give a warning saying
+-- Inferred type: (.+.) :: forall a. a
+-- but we used to not print the parentheses.
+
+(.+.) = undefined
+