{"push_id":1409929306,"size":1,"distinct_size":1,"ref":"refs/heads/local-func-use-before-decl","head":"b9fc05afb93c40f0e30674dc09c67645c1d7bb13","before":"7df01489c16ab8b1be4d1a1f4579d977274191c5","commits":[{"sha":"b9fc05afb93c40f0e30674dc09c67645c1d7bb13","author":{"name":"Andy Gocke","email":"f3b524fd6ab7c59600dd0d628ec698ee777bd527@microsoft.com"},"message":"Always show use of unassigned var errors\n\nPrior to C# 7 we tried to avoid giving duplicate errors\nwhen the user used a variable before it was defined (which\nis both a use-before-defined and a use-before-assigned error),\nbut the line here is blurred with local functions, which can\nuse variables before they are declared in subtle ways that can't\nbe detected based on declaration order in syntax.\n\nIt may be possible to provide the earlier behavior, but the\ncurrent optimization is definitely insufficient and hides\nlegitimate errors in user programs.\n\nFixes #15298\nFixes #15322","distinct":true,"url":"https://api.github.com/repos/agocke/roslyn/commits/b9fc05afb93c40f0e30674dc09c67645c1d7bb13"}]}
{"actor":{"display_login":"agocke"}}