Commit 65a102be authored by simonpj's avatar simonpj
Browse files

[project @ 2005-05-02 12:00:34 by simonpj]

Add newtype stupid-theta test
parent 4fae4453
......@@ -122,3 +122,4 @@ test('tcfail133', only_compiler_types(['ghc']), compile_fail, [''])
test('tcfail134', normal, compile_fail, [''])
test('tcfail135', normal, compile_fail, [''])
test('tcfail136', normal, compile_fail, [''])
test('tcfail137', normal, compile_fail, [''])
-- Test the stupid context on newtypes
-- (GHC 6.4 dropped it on the floor by mistake)
module ShouldFail where
newtype Floating a => Test a = Test [a]
x = Test [False, True]
No instance for (Floating Bool)
arising from use of `Test' at tcfail137.hs:8:4-7
Probable fix: add an instance declaration for (Floating Bool)
In the definition of `x': x = Test [False, True]
Supports Markdown
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