Commit 839f96c9 authored by simonpj's avatar simonpj
Browse files

[project @ 2006-01-05 10:06:30 by simonpj]

Add test for newtype existential
parent 7111d559
......@@ -140,3 +140,4 @@ test('tcfail152', normal, compile_fail, [''])
test('tcfail153', normal, compile_fail, [''])
test('tcfail154', normal, compile_fail, [''])
test('tcfail155', normal, compile_fail, [''])
test('tcfail156', normal, compile_fail, [''])
{-# OPTIONS -fglasgow-exts #-}
-- Illegal existential context on a newtype
module ShouldFail where
newtype Foo = forall a . Foo a
tcfail156.hs:7:14:
A newtype constructor cannot have an existential context,
but `Foo' does
In the newtype declaration for `Foo'
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