{"action":"created","issue":{"url":"https://api.github.com/repos/NETMF/netmf-interpreter/issues/327","labels_url":"https://api.github.com/repos/NETMF/netmf-interpreter/issues/327/labels{/name}","comments_url":"https://api.github.com/repos/NETMF/netmf-interpreter/issues/327/comments","events_url":"https://api.github.com/repos/NETMF/netmf-interpreter/issues/327/events","html_url":"https://github.com/NETMF/netmf-interpreter/issues/327","id":111160119,"number":327,"title":"Incorrect coercion of char to Int32","user":{"login":"martincalsyn","id":2230497,"avatar_url":"https://avatars.githubusercontent.com/u/2230497?v=3","gravatar_id":"","url":"https://api.github.com/users/martincalsyn","html_url":"https://github.com/martincalsyn","followers_url":"https://api.github.com/users/martincalsyn/followers","following_url":"https://api.github.com/users/martincalsyn/following{/other_user}","gists_url":"https://api.github.com/users/martincalsyn/gists{/gist_id}","starred_url":"https://api.github.com/users/martincalsyn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martincalsyn/subscriptions","organizations_url":"https://api.github.com/users/martincalsyn/orgs","repos_url":"https://api.github.com/users/martincalsyn/repos","events_url":"https://api.github.com/users/martincalsyn/events{/privacy}","received_events_url":"https://api.github.com/users/martincalsyn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-10-13T11:24:07Z","updated_at":"2015-10-14T03:51:55Z","closed_at":null,"body":"consider the code:\r\n\r\nstring s = \"foo\";\r\nchar c = ' '; // a space\r\ns += c;\r\n\r\nUnder VS2013, this will result in s == \"foo \".  Under VS2015, this will result in s == \"foo32\".\r\n\r\nStepping through the code, under VS2015, c is being corerced to Int32 and then Int32.ToString() is being called.  Under VS2013, no coercion occurs and char.ToString() is called.\r\n\r\nThis appears limited to NETMF code generation under VS2015. Code generation for other platforms (Win32, for example) results in the right behavior and code generation under VS2013 is also correct.\r\n\r\nNOTE: I haven't verified this with 4.4 installed, but I think it is a compiler issue that will affect both framework versions."},"comment":{"url":"https://api.github.com/repos/NETMF/netmf-interpreter/issues/comments/147926942","html_url":"https://github.com/NETMF/netmf-interpreter/issues/327#issuecomment-147926942","issue_url":"https://api.github.com/repos/NETMF/netmf-interpreter/issues/327","id":147926942,"user":{"login":"smaillet-ms","id":8934567,"avatar_url":"https://avatars.githubusercontent.com/u/8934567?v=3","gravatar_id":"","url":"https://api.github.com/users/smaillet-ms","html_url":"https://github.com/smaillet-ms","followers_url":"https://api.github.com/users/smaillet-ms/followers","following_url":"https://api.github.com/users/smaillet-ms/following{/other_user}","gists_url":"https://api.github.com/users/smaillet-ms/gists{/gist_id}","starred_url":"https://api.github.com/users/smaillet-ms/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smaillet-ms/subscriptions","organizations_url":"https://api.github.com/users/smaillet-ms/orgs","repos_url":"https://api.github.com/users/smaillet-ms/repos","events_url":"https://api.github.com/users/smaillet-ms/events{/privacy}","received_events_url":"https://api.github.com/users/smaillet-ms/received_events","type":"User","site_admin":false},"created_at":"2015-10-14T03:51:55Z","updated_at":"2015-10-14T03:51:55Z","body":"Definitely not, as constrained was added to support generics. Though it is technically orthogonal to generics and might be something we could look into implementing in the future."}}