diff options
Diffstat (limited to 'testsuite/tests/ghc-regress/typecheck/should_compile/T4404.hs')
-rw-r--r-- | testsuite/tests/ghc-regress/typecheck/should_compile/T4404.hs | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/testsuite/tests/ghc-regress/typecheck/should_compile/T4404.hs b/testsuite/tests/ghc-regress/typecheck/should_compile/T4404.hs deleted file mode 100644 index 894066542a..0000000000 --- a/testsuite/tests/ghc-regress/typecheck/should_compile/T4404.hs +++ /dev/null @@ -1,19 +0,0 @@ -{-# LANGUAGE RecordWildCards, DoRec #-} - -module TT where - -data T = T {t1, t2 :: Int} - -f :: T -> Int -f d = x - where T {t1 = x, ..} = d - -g :: T -> Int -g (T {t1 = x, ..}) = x - --- The fix to this test also affected the dorec checking code, hence this: -h :: Maybe Int -h = do - rec - T {t1 = x, ..} <- Just $ T 1 1 - return x |