Skip to content
Snippets Groups Projects
Commit a13cc0ce authored by Ben Gamari's avatar Ben Gamari
Browse files

TcIface: Fix inverted logic in typechecking of source ticks

Previously we would throw away source ticks when the debug level was
non-zero. This is precisely the opposite of what was intended.

Fixes #17616.

Metric Decrease:
    T13056
    T9020
    T9961
    T12425
parent 04d93615
No related branches found
No related tags found
No related merge requests found
......@@ -1365,7 +1365,7 @@ tcIfaceExpr (IfaceTick tickish expr) = do
-- If debug flag is not set: Ignore source notes
dbgLvl <- fmap debugLevel getDynFlags
case tickish of
IfaceSource{} | dbgLvl > 0
IfaceSource{} | dbgLvl == 0
-> return expr'
_otherwise -> do
tickish' <- tcIfaceTickish tickish
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment