{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/roslyn/issues/3924","labels_url":"https://api.github.com/repos/dotnet/roslyn/issues/3924/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/roslyn/issues/3924/comments","events_url":"https://api.github.com/repos/dotnet/roslyn/issues/3924/events","html_url":"https://github.com/dotnet/roslyn/issues/3924","id":94789845,"number":3924,"title":"Conversions and types in InterpolationSyntax","user":{"login":"erik-kallen","id":688028,"avatar_url":"https://avatars.githubusercontent.com/u/688028?v=3","gravatar_id":"","url":"https://api.github.com/users/erik-kallen","html_url":"https://github.com/erik-kallen","followers_url":"https://api.github.com/users/erik-kallen/followers","following_url":"https://api.github.com/users/erik-kallen/following{/other_user}","gists_url":"https://api.github.com/users/erik-kallen/gists{/gist_id}","starred_url":"https://api.github.com/users/erik-kallen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erik-kallen/subscriptions","organizations_url":"https://api.github.com/users/erik-kallen/orgs","repos_url":"https://api.github.com/users/erik-kallen/repos","events_url":"https://api.github.com/users/erik-kallen/events{/privacy}","received_events_url":"https://api.github.com/users/erik-kallen/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-13T19:12:59Z","updated_at":"2015-07-21T21:09:05Z","closed_at":"2015-07-21T21:09:04Z","body":"This program:\r\n\r\n\tclass Program {\r\n\t\tstatic void Main(string[] args) {\r\n\t\t\tvar source = @\"\r\n\t\t\t\tclass C {\r\n\t\t\t\t\tvoid M() {\r\n\t\t\t\t\t\tint i = 0;\r\n\t\t\t\t\t\tvar s = $\"\"i = {i}\"\";\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\";\r\n\r\n\t\t\tvar syntaxTree = CSharpSyntaxTree.ParseText(source);\r\n\r\n\t\t\tvar compilation = CSharpCompilation.Create(\"Test\", new[] { syntaxTree }, new [] { MetadataReference.CreateFromFile(typeof(object).Assembly.Location) } );\r\n\t\t\tvar semanticModel = compilation.GetSemanticModel(syntaxTree, false);\r\n\r\n\t\t\tvar interpolation = syntaxTree.GetRoot().DescendantNodes().OfType<InterpolationSyntax>().Single().Expression;\r\n\r\n\t\t\tvar type = semanticModel.GetTypeInfo(interpolation);\r\n\t\t\tvar conversion = semanticModel.GetConversion(interpolation);\r\n\t\t\tConsole.WriteLine(conversion + \", from \" + type.Type + \" to \" + type.ConvertedType);\r\n\t\t}\r\n\t}\r\n\r\nprints ```Identity, from int to int```. Since the method ```String.Format()``` has the parameters ```(string format, params object[] args)``` (and similar for ```FormattableStringFactory.Create```), I think it would be suitable to return a boxing conversion from ```int``` to ```object``` here."},"comment":{"url":"https://api.github.com/repos/dotnet/roslyn/issues/comments/123477991","html_url":"https://github.com/dotnet/roslyn/issues/3924#issuecomment-123477991","issue_url":"https://api.github.com/repos/dotnet/roslyn/issues/3924","id":123477991,"user":{"login":"gafter","id":3804346,"avatar_url":"https://avatars.githubusercontent.com/u/3804346?v=3","gravatar_id":"","url":"https://api.github.com/users/gafter","html_url":"https://github.com/gafter","followers_url":"https://api.github.com/users/gafter/followers","following_url":"https://api.github.com/users/gafter/following{/other_user}","gists_url":"https://api.github.com/users/gafter/gists{/gist_id}","starred_url":"https://api.github.com/users/gafter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gafter/subscriptions","organizations_url":"https://api.github.com/users/gafter/orgs","repos_url":"https://api.github.com/users/gafter/repos","events_url":"https://api.github.com/users/gafter/events{/privacy}","received_events_url":"https://api.github.com/users/gafter/received_events","type":"User","site_admin":false},"created_at":"2015-07-21T21:09:04Z","updated_at":"2015-07-21T21:09:04Z","body":"GetTypeInfo is intended to be used with expressions.\r\n\r\nAn InterpolationSyntax is not an expression."}}