diff options
Diffstat (limited to 'testsuite/tests/ghc-api/T6145.hs')
-rw-r--r-- | testsuite/tests/ghc-api/T6145.hs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/testsuite/tests/ghc-api/T6145.hs b/testsuite/tests/ghc-api/T6145.hs index fc0a71ade3..3f4afc449e 100644 --- a/testsuite/tests/ghc-api/T6145.hs +++ b/testsuite/tests/ghc-api/T6145.hs @@ -34,10 +34,8 @@ main = do where isDataCon (L _ (AbsBinds { abs_binds = bs })) = not (isEmptyBag (filterBag isDataCon bs)) - isDataCon (L _ (AbsBindsSig { abs_sig_bind = b })) - = isDataCon b isDataCon (L l (f@FunBind {})) - | (MG (L _ (m:_)) _ _ _) <- fun_matches f, + | (MG _ (L _ (m:_)) _) <- fun_matches f, (L _ (c@ConPatOut{}):_)<-hsLMatchPats m, (L l _)<-pat_con c = isGoodSrcSpan l -- Check that the source location is a good one |