{"action":"opened","issue":{"url":"https://api.github.com/repos/dotnet/roslyn/issues/13203","repository_url":"https://api.github.com/repos/dotnet/roslyn","labels_url":"https://api.github.com/repos/dotnet/roslyn/issues/13203/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/roslyn/issues/13203/comments","events_url":"https://api.github.com/repos/dotnet/roslyn/issues/13203/events","html_url":"https://github.com/dotnet/roslyn/issues/13203","id":171502284,"number":13203,"title":"No errors reported when out parameter of ImmutableArray type is not initialized before function returns","user":{"login":"AlekseyTs","id":10522107,"avatar_url":"https://avatars.githubusercontent.com/u/10522107?v=3","gravatar_id":"","url":"https://api.github.com/users/AlekseyTs","html_url":"https://github.com/AlekseyTs","followers_url":"https://api.github.com/users/AlekseyTs/followers","following_url":"https://api.github.com/users/AlekseyTs/following{/other_user}","gists_url":"https://api.github.com/users/AlekseyTs/gists{/gist_id}","starred_url":"https://api.github.com/users/AlekseyTs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlekseyTs/subscriptions","organizations_url":"https://api.github.com/users/AlekseyTs/orgs","repos_url":"https://api.github.com/users/AlekseyTs/repos","events_url":"https://api.github.com/users/AlekseyTs/events{/privacy}","received_events_url":"https://api.github.com/users/AlekseyTs/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dotnet/roslyn/labels/Area-Compilers","name":"Area-Compilers","color":"5319e7"},{"url":"https://api.github.com/repos/dotnet/roslyn/labels/Bug","name":"Bug","color":"fc2929"},{"url":"https://api.github.com/repos/dotnet/roslyn/labels/Language-C%23","name":"Language-C#","color":"207de5"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-16T19:52:23Z","updated_at":"2016-08-16T19:52:23Z","closed_at":null,"body":"in roslyn\\src\\ExpressionEvaluator\\CSharp\\Source\\ExpressionCompiler\\CompilationContext.cs\r\n\r\nThere is a following code at the end of ExtendBinderChain function, which has out parameter ```out ImmutableArray<LocalSymbol> declaredLocals```\r\n\r\n```\r\n            if (declaredLocalsScopeDesignator != null)\r\n            {\r\n                declaredLocals = originalRootBinder.GetDeclaredLocalsForScope(declaredLocalsScopeDesignator);\r\n            }\r\n            else\r\n            {\r\n                declaredLocals = ImmutableArray<LocalSymbol>.Empty;\r\n            }\r\n```\r\n\r\nIf the ```else``` block is removed, no error reported that declaredLocals might be not fully assigned.\r\n\r\nExpected to get an error."}}
{"actor":{"display_login":"AlekseyTs"}}