Skip to content
Commit 23343145 authored by Corentin Jabot's avatar Corentin Jabot Committed by Aaron Ballman
Browse files

Do not check if we are in a discared context in non-immediate contexts

This fixes in a regression introduced by 6eeda06c.

When deducing the return type of nested function calls, only the
return type of the outermost expression should be ignored.

Instead of assuming all contextes nested in a discared statements
are themselves discarded, only assume that in immediate contexts.

Similarly, only consider contextes immediately in an immediate or
discarded statement as being themselves immediate.
parent 97799723
Loading
Loading
Loading
Loading
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