{"action":"closed","issue":{"url":"https://api.github.com/repos/dodie/scott/issues/17","repository_url":"https://api.github.com/repos/dodie/scott","labels_url":"https://api.github.com/repos/dodie/scott/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/dodie/scott/issues/17/comments","events_url":"https://api.github.com/repos/dodie/scott/issues/17/events","html_url":"https://github.com/dodie/scott/issues/17","id":181838816,"number":17,"title":"Variable names are not recorded in for blocks","user":{"login":"dodie","id":1114220,"avatar_url":"https://avatars.githubusercontent.com/u/1114220?v=3","gravatar_id":"","url":"https://api.github.com/users/dodie","html_url":"https://github.com/dodie","followers_url":"https://api.github.com/users/dodie/followers","following_url":"https://api.github.com/users/dodie/following{/other_user}","gists_url":"https://api.github.com/users/dodie/gists{/gist_id}","starred_url":"https://api.github.com/users/dodie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dodie/subscriptions","organizations_url":"https://api.github.com/users/dodie/orgs","repos_url":"https://api.github.com/users/dodie/repos","events_url":"https://api.github.com/users/dodie/events{/privacy}","received_events_url":"https://api.github.com/users/dodie/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dodie/scott/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/dodie/scott/labels/recording","name":"recording","color":"fef2c0"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-08T17:38:49Z","updated_at":"2016-10-09T07:45:48Z","closed_at":"2016-10-09T07:45:48Z","body":"If the for block has an increment statement, the state of the variables inside the block are recorded, but not their name.\r\n\r\nFor example in the following case the name of the variable *j* is not recorded:\r\n```\r\n  47|      @Test\r\n  48|      public void for_test() throws Exception {\r\n  49|          for (int i = 0; i < 10; i++) {  // i=0\r\n  50|              int j = i * 2;  // 0\r\n  51|*             fail();  // AssertionError\r\n  52|          }\r\n  53|      }\r\n```\r\n\r\nBut with an empty increment statementthe recording works fine:\r\n```\r\n  47|      @Test\r\n  48|      public void for_test() throws Exception {\r\n  49|          for (int i = 0; i < 10;) {  // i=0\r\n  50|              int j = i * 2;  // j=0\r\n  51|*             fail();  // AssertionError\r\n  52|          }\r\n  53|      }\r\n```"}}
{"actor":{"display_login":"dodie"}}