4 ms·
Reminds me of the time my team found a bug in the .Net C# compiler. A whole branch of an if/else statement was being ignored, as in, it simply wasn't present in
by s_kilk 10y ago
Reminds me of the time my team found a bug in the .Net C# compiler. A whole branch of an if/else statement was being ignored, as in, it simply wasn't present in the emitted IL.
Adding a little `&& 1 == 1` to the conditional made the compiler do the right thing again.
Edit: preemptively, no there wasn't anything special or weird about this conditional.