{"action":"closed","issue":{"url":"https://api.github.com/repos/code-cracker/code-cracker/issues/812","repository_url":"https://api.github.com/repos/code-cracker/code-cracker","labels_url":"https://api.github.com/repos/code-cracker/code-cracker/issues/812/labels{/name}","comments_url":"https://api.github.com/repos/code-cracker/code-cracker/issues/812/comments","events_url":"https://api.github.com/repos/code-cracker/code-cracker/issues/812/events","html_url":"https://github.com/code-cracker/code-cracker/issues/812","id":169831134,"number":812,"title":"BUG: Make readonly (CC0052) is incorrectly raised if constructor shows up after member that uses the field","user":{"login":"giggio","id":334958,"avatar_url":"https://avatars.githubusercontent.com/u/334958?v=3","gravatar_id":"","url":"https://api.github.com/users/giggio","html_url":"https://github.com/giggio","followers_url":"https://api.github.com/users/giggio/followers","following_url":"https://api.github.com/users/giggio/following{/other_user}","gists_url":"https://api.github.com/users/giggio/gists{/gist_id}","starred_url":"https://api.github.com/users/giggio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/giggio/subscriptions","organizations_url":"https://api.github.com/users/giggio/orgs","repos_url":"https://api.github.com/users/giggio/repos","events_url":"https://api.github.com/users/giggio/events{/privacy}","received_events_url":"https://api.github.com/users/giggio/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/code-cracker/code-cracker/labels/3%20-%20Done","name":"3 - Done","color":"CCCCCC"},{"url":"https://api.github.com/repos/code-cracker/code-cracker/labels/analyzer","name":"analyzer","color":"0052cc"},{"url":"https://api.github.com/repos/code-cracker/code-cracker/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/code-cracker/code-cracker/labels/C%23","name":"C#","color":"5319e7"}],"state":"closed","locked":false,"assignee":{"login":"giggio","id":334958,"avatar_url":"https://avatars.githubusercontent.com/u/334958?v=3","gravatar_id":"","url":"https://api.github.com/users/giggio","html_url":"https://github.com/giggio","followers_url":"https://api.github.com/users/giggio/followers","following_url":"https://api.github.com/users/giggio/following{/other_user}","gists_url":"https://api.github.com/users/giggio/gists{/gist_id}","starred_url":"https://api.github.com/users/giggio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/giggio/subscriptions","organizations_url":"https://api.github.com/users/giggio/orgs","repos_url":"https://api.github.com/users/giggio/repos","events_url":"https://api.github.com/users/giggio/events{/privacy}","received_events_url":"https://api.github.com/users/giggio/received_events","type":"User","site_admin":false},"assignees":[{"login":"giggio","id":334958,"avatar_url":"https://avatars.githubusercontent.com/u/334958?v=3","gravatar_id":"","url":"https://api.github.com/users/giggio","html_url":"https://github.com/giggio","followers_url":"https://api.github.com/users/giggio/followers","following_url":"https://api.github.com/users/giggio/following{/other_user}","gists_url":"https://api.github.com/users/giggio/gists{/gist_id}","starred_url":"https://api.github.com/users/giggio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/giggio/subscriptions","organizations_url":"https://api.github.com/users/giggio/orgs","repos_url":"https://api.github.com/users/giggio/repos","events_url":"https://api.github.com/users/giggio/events{/privacy}","received_events_url":"https://api.github.com/users/giggio/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/code-cracker/code-cracker/milestones/16","html_url":"https://github.com/code-cracker/code-cracker/milestones/1.0.1","labels_url":"https://api.github.com/repos/code-cracker/code-cracker/milestones/16/labels","id":1711860,"number":16,"title":"1.0.1","description":"","creator":{"login":"giggio","id":334958,"avatar_url":"https://avatars.githubusercontent.com/u/334958?v=3","gravatar_id":"","url":"https://api.github.com/users/giggio","html_url":"https://github.com/giggio","followers_url":"https://api.github.com/users/giggio/followers","following_url":"https://api.github.com/users/giggio/following{/other_user}","gists_url":"https://api.github.com/users/giggio/gists{/gist_id}","starred_url":"https://api.github.com/users/giggio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/giggio/subscriptions","organizations_url":"https://api.github.com/users/giggio/orgs","repos_url":"https://api.github.com/users/giggio/repos","events_url":"https://api.github.com/users/giggio/events{/privacy}","received_events_url":"https://api.github.com/users/giggio/received_events","type":"User","site_admin":false},"open_issues":6,"closed_issues":10,"state":"open","created_at":"2016-04-17T04:05:44Z","updated_at":"2016-08-20T16:44:27Z","due_on":"2016-08-14T03:00:00Z","closed_at":null},"comments":1,"created_at":"2016-08-08T02:12:47Z","updated_at":"2016-08-20T16:44:27Z","closed_at":"2016-08-20T16:44:27Z","body":"Depending on the order in which the constructor shows up in a class `CC0052` is raised or not.\r\n\r\nThis does not raise the diagnostic:\r\n\r\n````csharp\r\nclass Test\r\n{\r\n    public Test()\r\n    {\r\n        value = 8;\r\n    }\r\n    private int value;\r\n    public int Value\r\n    {\r\n        get { return value; }\r\n        set { this.value = value; }\r\n    }\r\n    public void Foo()\r\n    {\r\n        value = 1;\r\n    }\r\n}\r\n````\r\n\r\nAnd this does:\r\n\r\n````csharp\r\nclass Test\r\n{\r\n    private int value;\r\n    public int Value\r\n    {\r\n        get { return value; }\r\n        set { this.value = value; }\r\n    }\r\n    public void Foo()\r\n    {\r\n        value = 1;\r\n    }\r\n    public Test()\r\n    {\r\n        value = 8;\r\n    }\r\n}\r\n````\r\n\r\nThe only difference is the order in which the members appear.\r\n\r\nOn both cases, the diagnostics should not show up.\r\n\r\nThis should be fixed on the `v1.0.x branch`."}}
{"actor":{"display_login":"giggio"}}