Skip to content

Instantly share code, notes, and snippets.

@lgolubyev
Created May 24, 2022 12:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lgolubyev/7bd61e64d8098c3191f72d344a529936 to your computer and use it in GitHub Desktop.
Save lgolubyev/7bd61e64d8098c3191f72d344a529936 to your computer and use it in GitHub Desktop.
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