Commit f6dd83cc authored by Simon Peyton Jones's avatar Simon Peyton Jones
Browse files

Test the second bug reported in Trac #4127

parent e488e6b7
:set -XTemplateHaskell
Language.Haskell.TH.runQ $ [d| f = undefined; class Foo x where { f :: x -> x }; instance Foo Int where { f = id } |]
Multiple declarations of `f'
Declared at: <interactive>:1:32
<interactive>:1:108: `f' is not a (visible) method of class `Foo'
......@@ -66,3 +66,4 @@ test('4051', normal, ghci_script, ['4051.script'])
test('T4087', normal, ghci_script, ['T4087.script'])
test('T4015', normal, ghci_script, ['T4015.script'])
test('T4127', normal, ghci_script, ['T4127.script'])
test('T4127a', normal, ghci_script, ['T4127a.script'])
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