{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/roslyn/issues/2046","labels_url":"https://api.github.com/repos/dotnet/roslyn/issues/2046/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/roslyn/issues/2046/comments","events_url":"https://api.github.com/repos/dotnet/roslyn/issues/2046/events","html_url":"https://github.com/dotnet/roslyn/issues/2046","id":68884735,"number":2046,"title":"Passing dynamic type in constructor makes compiller skip Object initializer","user":{"login":"horse315","id":3608991,"avatar_url":"https://avatars.githubusercontent.com/u/3608991?v=3","gravatar_id":"","url":"https://api.github.com/users/horse315","html_url":"https://github.com/horse315","followers_url":"https://api.github.com/users/horse315/followers","following_url":"https://api.github.com/users/horse315/following{/other_user}","gists_url":"https://api.github.com/users/horse315/gists{/gist_id}","starred_url":"https://api.github.com/users/horse315/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/horse315/subscriptions","organizations_url":"https://api.github.com/users/horse315/orgs","repos_url":"https://api.github.com/users/horse315/repos","events_url":"https://api.github.com/users/horse315/events{/privacy}","received_events_url":"https://api.github.com/users/horse315/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-16T09:34:43Z","updated_at":"2015-04-16T09:40:11Z","closed_at":null,"body":"Example:\r\n\r\n````C#\r\n    class Program\r\n    {\r\n        static void Main(string[] args)\r\n        {\r\n            NotWorks();\r\n            Works();\r\n        }\r\n\r\n        public static void NotWorks()\r\n        {\r\n            var cc = new Cc(1, (dynamic)new object())\r\n            {\r\n                C = Guid.NewGuid()\r\n            };\r\n            Console.WriteLine(cc.C);\r\n        }\r\n\r\n        public static void Works()\r\n        {\r\n            var cc1 = new Cc(1)\r\n            {\r\n                C = Guid.NewGuid()\r\n            };\r\n            Console.WriteLine(cc1.C);\r\n        }\r\n    }\r\n\r\n    public class Cc{\r\n\r\n        public int A { get; set; }\r\n        public dynamic B { get; set; }\r\n\r\n        public Guid C { get; set; }\r\n\r\n        public Cc(int a)\r\n        {\r\n            A = a;\r\n        }\r\n\r\n        public Cc(int a, dynamic b)\r\n        {\r\n            A = a;\r\n            B = b;\r\n        }\r\n    }\r\n\r\nOutput:\r\n> 00000000-0000-0000-0000-000000000000\r\n> e3812288-9342-46a8-90af-1087488a30ff"},"comment":{"url":"https://api.github.com/repos/dotnet/roslyn/issues/comments/93693467","html_url":"https://github.com/dotnet/roslyn/issues/2046#issuecomment-93693467","issue_url":"https://api.github.com/repos/dotnet/roslyn/issues/2046","id":93693467,"user":{"login":"horse315","id":3608991,"avatar_url":"https://avatars.githubusercontent.com/u/3608991?v=3","gravatar_id":"","url":"https://api.github.com/users/horse315","html_url":"https://github.com/horse315","followers_url":"https://api.github.com/users/horse315/followers","following_url":"https://api.github.com/users/horse315/following{/other_user}","gists_url":"https://api.github.com/users/horse315/gists{/gist_id}","starred_url":"https://api.github.com/users/horse315/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/horse315/subscriptions","organizations_url":"https://api.github.com/users/horse315/orgs","repos_url":"https://api.github.com/users/horse315/repos","events_url":"https://api.github.com/users/horse315/events{/privacy}","received_events_url":"https://api.github.com/users/horse315/received_events","type":"User","site_admin":false},"created_at":"2015-04-16T09:40:11Z","updated_at":"2015-04-16T09:40:11Z","body":"csc2 compiller, .net 4.6 VS 2015"}}