{"action":"opened","issue":{"url":"https://api.github.com/repos/Microsoft/pxt/issues/1677","repository_url":"https://api.github.com/repos/Microsoft/pxt","labels_url":"https://api.github.com/repos/Microsoft/pxt/issues/1677/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/pxt/issues/1677/comments","events_url":"https://api.github.com/repos/Microsoft/pxt/issues/1677/events","html_url":"https://github.com/Microsoft/pxt/issues/1677","id":215124402,"number":1677,"title":"roundtrip shouldn't rename user-supplied field names","user":{"login":"tballmsft","id":10767146,"avatar_url":"https://avatars0.githubusercontent.com/u/10767146?v=3","gravatar_id":"","url":"https://api.github.com/users/tballmsft","html_url":"https://github.com/tballmsft","followers_url":"https://api.github.com/users/tballmsft/followers","following_url":"https://api.github.com/users/tballmsft/following{/other_user}","gists_url":"https://api.github.com/users/tballmsft/gists{/gist_id}","starred_url":"https://api.github.com/users/tballmsft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tballmsft/subscriptions","organizations_url":"https://api.github.com/users/tballmsft/orgs","repos_url":"https://api.github.com/users/tballmsft/repos","events_url":"https://api.github.com/users/tballmsft/events{/privacy}","received_events_url":"https://api.github.com/users/tballmsft/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-03-17T21:16:08Z","updated_at":"2017-03-17T21:16:08Z","closed_at":null,"body":"Try this JavaScript program \r\n\r\nhttps://pxt.microbit.org/49014-08183-72643-03742  \r\n\r\ninterface Foo {\r\n    a: number\r\n    b?: number\r\n}\r\n\r\nlet x: Foo = { a: 1, b: 2 }\r\nbar(x)\r\n\r\nfunction bar(y: Foo) {\r\n    basic.showNumber(y.a)\r\n}\r\n\r\nRound trip yields:\r\n\r\ninterface Foo {\r\n    c: number\r\n    d?: number\r\n}\r\nlet x: Foo = { c: 1, d: 2 }\r\nbar(x)\r\nfunction bar(y: Foo) {\r\n    basic.showNumber(y.c)\r\n}\r\n\r\n"}}
{"actor":{"display_login":"tballmsft"}}