{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/roslyn/issues/11979","repository_url":"https://api.github.com/repos/dotnet/roslyn","labels_url":"https://api.github.com/repos/dotnet/roslyn/issues/11979/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/roslyn/issues/11979/comments","events_url":"https://api.github.com/repos/dotnet/roslyn/issues/11979/events","html_url":"https://github.com/dotnet/roslyn/issues/11979","id":160061777,"number":11979,"title":"Failed variation of TestCSharp_LambdaParameter_DontExpandAnonymousTypes2","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},"labels":[{"url":"https://api.github.com/repos/dotnet/roslyn/labels/Area-IDE","name":"Area-IDE","color":"5319e7"},{"url":"https://api.github.com/repos/dotnet/roslyn/labels/Bug","name":"Bug","color":"fc2929"},{"url":"https://api.github.com/repos/dotnet/roslyn/labels/Test","name":"Test","color":"fc2929"}],"state":"closed","locked":false,"assignee":{"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},"milestone":{"url":"https://api.github.com/repos/dotnet/roslyn/milestones/19","html_url":"https://github.com/dotnet/roslyn/milestones/2.0%20(Preview%204)","labels_url":"https://api.github.com/repos/dotnet/roslyn/milestones/19/labels","id":1698876,"number":19,"title":"2.0 (Preview 4)","description":"","creator":{"login":"davkean","id":1103906,"avatar_url":"https://avatars.githubusercontent.com/u/1103906?v=3","gravatar_id":"","url":"https://api.github.com/users/davkean","html_url":"https://github.com/davkean","followers_url":"https://api.github.com/users/davkean/followers","following_url":"https://api.github.com/users/davkean/following{/other_user}","gists_url":"https://api.github.com/users/davkean/gists{/gist_id}","starred_url":"https://api.github.com/users/davkean/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davkean/subscriptions","organizations_url":"https://api.github.com/users/davkean/orgs","repos_url":"https://api.github.com/users/davkean/repos","events_url":"https://api.github.com/users/davkean/events{/privacy}","received_events_url":"https://api.github.com/users/davkean/received_events","type":"User","site_admin":false},"open_issues":61,"closed_issues":33,"state":"open","created_at":"2016-04-11T20:34:06Z","updated_at":"2016-06-22T00:02:40Z","due_on":null,"closed_at":null},"comments":8,"created_at":"2016-06-13T22:48:00Z","updated_at":"2016-06-22T00:02:40Z","closed_at":"2016-06-22T00:02:40Z","body":"The following slight variation of an existing IDE test fails. This shows how this test is sensitive to a bug in the C# semantic model that we will be fixing soon (see #11901).\r\n\r\n```vb\r\n        <Fact, Trait(Traits.Feature, Traits.Features.Expansion)>\r\n        Public Async Function TestCSharp_LambdaParameter_DontExpandAnonymousTypes2_variation() As Task\r\n            Dim input =\r\n<Workspace>\r\n    <Project Language=\"C#\" CommonReferences=\"true\">\r\n        <Document>\r\nusing System;\r\nclass C\r\n{\r\n    static void Mumble&lt;T&gt;(T anonymousType, Action&lt;T, int, int&gt; lambda) { }\r\n    static void Mumble() { } // added to the test\r\n\r\n    static void M()\r\n    {\r\n        Mumble(new { x = 42 }, {|Expand:(a, y) => a.x|});\r\n    }\r\n}\r\n        </Document>\r\n    </Project>\r\n</Workspace>\r\n\r\n            Dim expected =\r\n<code>\r\nusing System;\r\nclass C\r\n{\r\n    static void Mumble&lt;T&gt;(T anonymousType, Action&lt;T, int, int&gt; lambda) { }\r\n    static void Mumble() { } // added to the test\r\n\r\n    static void M()\r\n    {\r\n        Mumble(new { x = 42 }, (a, y) => a.x);\r\n    }\r\n}\r\n</code>\r\n\r\n            Await TestAsync(input, expected, expandParameter:=True)\r\n        End Function\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/dotnet/roslyn/issues/comments/227607624","html_url":"https://github.com/dotnet/roslyn/issues/11979#issuecomment-227607624","issue_url":"https://api.github.com/repos/dotnet/roslyn/issues/11979","id":227607624,"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":"2016-06-22T00:02:40Z","updated_at":"2016-06-22T00:02:40Z","body":"Fixed in https://github.com/dotnet/roslyn/commit/7abdbb5391935046b984c917dc7d6e54540448b0"}}
{"actor":{"display_login":"gafter"}}