Created
January 9, 2017 17:15
-
-
Save controlflow/359e10ed36cc4b71120387920de231a5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| public class C { | |
| public void M() { | |
| bool b; | |
| if (b = true) { } | |
| while (b = true) { } | |
| for (; b = true; ) { } | |
| do { } while (b = true); | |
| try { } | |
| catch when (b = true) { } | |
| switch (b = true) { | |
| case bool u when b = true: | |
| break; | |
| } | |
| b.ToString(); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment