I have a rather strange problem that is occurring.
This is my code:
private async Task BreakExpectedLogic()
{
bool test = false;
if (test == true)
{
Console.WriteLine("Hello!");
throw new Exception("BAD HASH!");
}
}
Seems really simple, it shouldn't hit the Console.WriteLine or the throw.
For some reason it's always hitting the throw.
If I move the throw into its own method then it works fine. My question is how is it ignoring the if block and hitting the throw new Exception:
EDIT 1: I've updated my code to include the signature, I've removed everything not related to this problem and ran it, it still happens.

Mainand....surprise, norepro. Either you're mistaken or you've missed some important detail.asyncmethod by any chance? Because it seems similar to stackoverflow.com/questions/42528458/…