Commit 3992a6e2 authored by Simon Peyton Jones's avatar Simon Peyton Jones

Test Trac #9975

parent 387f1d1e
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE PatternSynonyms #-}
module T9975a where
data Test = Test { x :: Int }
pattern Test wat = Test { x = wat }
T9975a.hs:6:1:
Multiple declarations of ‘Test’
Declared at: T9975a.hs:5:13
T9975a.hs:6:1
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE PatternSynonyms #-}
module T9975b where
data Test = Test { x :: Int }
pattern PTest wat = Test { x = wat }
......@@ -22,3 +22,5 @@ test('ImpExp_Imp', [extra_clean(['ImpExp_Exp.hi', 'ImpExp_Exp.o'])], multimod_co
test('T9857', normal, compile, [''])
test('T9889', normal, compile, [''])
test('T9867', normal, compile, [''])
test('T9975a', normal, compile_fail, [''])
test('T9975b', normal, compile, [''])
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment