Skip to content

Instantly share code, notes, and snippets.

@ufcpp
Created February 17, 2015 14:18
Show Gist options
  • Save ufcpp/a343228d982a18242bcc to your computer and use it in GitHub Desktop.
Save ufcpp/a343228d982a18242bcc to your computer and use it in GitHub Desktop.
Definite assignment with unreachable code
class Program
{
static void Main(string[] args)
{
int x;
if (false && x == 3) // 恒偽定数式の後ろの、ショートサーキット演算に続く式は絶対に到達できない
{
x = x + 1;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment