Created
May 24, 2022 12:08
-
-
Save lgolubyev/7bd61e64d8098c3191f72d344a529936 to your computer and use it in GitHub Desktop.
This file contains 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
case (int x, 0) a when Use(x, a): // ok | |
case (0, int x) b when Use(x, b): // ok | |
Use(x); // ok | |
Use(a); // error; not definitely assigned | |
Use(b); // error; not definitely assigned | |
break; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment