summaryrefslogtreecommitdiff
path: root/testsuite/tests
diff options
context:
space:
mode:
authorSimon Peyton Jones <simonpj@microsoft.com>2012-06-18 09:17:51 +0100
committerSimon Peyton Jones <simonpj@microsoft.com>2012-06-18 09:17:51 +0100
commitde246aad74ed36eaffe4ac519f13818f2aecec5a (patch)
tree4ff7eb10a420554f3d5b0d1a3a1aca7a672c7c5c /testsuite/tests
parent64cf942334720ab4677de4d444980f2bef33af54 (diff)
downloadhaskell-de246aad74ed36eaffe4ac519f13818f2aecec5a.tar.gz
Test Trac #7007
Diffstat (limited to 'testsuite/tests')
-rw-r--r--testsuite/tests/rename/should_compile/T7007.hs10
-rw-r--r--testsuite/tests/rename/should_compile/all.T1
2 files changed, 11 insertions, 0 deletions
diff --git a/testsuite/tests/rename/should_compile/T7007.hs b/testsuite/tests/rename/should_compile/T7007.hs
new file mode 100644
index 0000000000..73a6f06b76
--- /dev/null
+++ b/testsuite/tests/rename/should_compile/T7007.hs
@@ -0,0 +1,10 @@
+module T7007 where
+
+import Data.Monoid( Monoid(..) )
+
+infixr 5 ++ -- This unambiguously refers to the local definition
+
+(++) :: Monoid a => a -> a -> a
+(++) = mappend
+
+
diff --git a/testsuite/tests/rename/should_compile/all.T b/testsuite/tests/rename/should_compile/all.T
index 95174b1f61..3c821f7e2b 100644
--- a/testsuite/tests/rename/should_compile/all.T
+++ b/testsuite/tests/rename/should_compile/all.T
@@ -191,3 +191,4 @@ test('T5867',
multimod_compile, ['T5867', '-v0'])
test('T6027', normal, compile, [''])
test('T6120', normal, compile, [''])
+test('T7007', normal, compile, [''])