{"action":"opened","issue":{"url":"https://api.github.com/repos/Microsoft/nodejstools/issues/1320","repository_url":"https://api.github.com/repos/Microsoft/nodejstools","labels_url":"https://api.github.com/repos/Microsoft/nodejstools/issues/1320/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/nodejstools/issues/1320/comments","events_url":"https://api.github.com/repos/Microsoft/nodejstools/issues/1320/events","html_url":"https://github.com/Microsoft/nodejstools/issues/1320","id":181552925,"number":1320,"title":"Cannot Redefine Function Declarations in Interactive Window","user":{"login":"mjbvz","id":12821956,"avatar_url":"https://avatars.githubusercontent.com/u/12821956?v=3","gravatar_id":"","url":"https://api.github.com/users/mjbvz","html_url":"https://github.com/mjbvz","followers_url":"https://api.github.com/users/mjbvz/followers","following_url":"https://api.github.com/users/mjbvz/following{/other_user}","gists_url":"https://api.github.com/users/mjbvz/gists{/gist_id}","starred_url":"https://api.github.com/users/mjbvz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjbvz/subscriptions","organizations_url":"https://api.github.com/users/mjbvz/orgs","repos_url":"https://api.github.com/users/mjbvz/repos","events_url":"https://api.github.com/users/mjbvz/events{/privacy}","received_events_url":"https://api.github.com/users/mjbvz/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Microsoft/nodejstools/labels/interactive-window","name":"interactive-window","color":"dff0ff"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-06T23:49:52Z","updated_at":"2016-10-06T23:49:52Z","closed_at":null,"body":"NTVS 1.2+\r\n\r\n##### Repo\r\n\r\n1. Open NTVS interactive window.\r\n1. Enter `function a() { return 10 }`\r\n1. Return;\r\n1. Enter `function a() { return 20 }`\r\n1. return;\r\n1. Enter `a()`\r\n\r\n##### Expected\r\n`20` is printed\r\n\r\n##### Actual\r\n`10` is printed. It seems function declarations cannot be redefined.\r\n\r\n![image](https://cloud.githubusercontent.com/assets/12821956/19174559/70009b28-8be4-11e6-93dd-7edee36e6ed7.png)\r\n\r\nForms such as `function a() { return 10 }; function a() { return 20 }` work as expected, as do variable declarations\r\n"}}
{"actor":{"display_login":"mjbvz"}}