diff options
Diffstat (limited to 'testsuite/tests/typecheck/should_compile/T1495.hs')
-rw-r--r-- | testsuite/tests/typecheck/should_compile/T1495.hs | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/testsuite/tests/typecheck/should_compile/T1495.hs b/testsuite/tests/typecheck/should_compile/T1495.hs new file mode 100644 index 0000000000..0de4e456de --- /dev/null +++ b/testsuite/tests/typecheck/should_compile/T1495.hs @@ -0,0 +1,19 @@ +-- Test Trac #1495 + +module CompilerBug where + +newtype Fix a = Fix (a (Fix a)) +data ID a = ID a +newtype I a = I a + +testOk :: Fix ID +testOk = undefined + +-- this definition causes the compiler to fail to terminate +testInfiniteLoop :: Fix I +testInfiniteLoop = undefined + + +newtype T = MkT T +test :: T +test = undefined |