{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/roslyn/issues/74","labels_url":"https://api.github.com/repos/dotnet/roslyn/issues/74/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/roslyn/issues/74/comments","events_url":"https://api.github.com/repos/dotnet/roslyn/issues/74/events","html_url":"https://github.com/dotnet/roslyn/issues/74","id":55426328,"number":74,"title":"Conditional access expression in other contexts where expression value is ignored","user":{"login":"controlflow","id":194765,"avatar_url":"https://avatars.githubusercontent.com/u/194765?v=3","gravatar_id":"","url":"https://api.github.com/users/controlflow","html_url":"https://github.com/controlflow","followers_url":"https://api.github.com/users/controlflow/followers","following_url":"https://api.github.com/users/controlflow/following{/other_user}","gists_url":"https://api.github.com/users/controlflow/gists{/gist_id}","starred_url":"https://api.github.com/users/controlflow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/controlflow/subscriptions","organizations_url":"https://api.github.com/users/controlflow/orgs","repos_url":"https://api.github.com/users/controlflow/repos","events_url":"https://api.github.com/users/controlflow/events{/privacy}","received_events_url":"https://api.github.com/users/controlflow/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dotnet/roslyn/labels/Area-Language%20Design","name":"Area-Language Design","color":"5319e7"},{"url":"https://api.github.com/repos/dotnet/roslyn/labels/Enhancement","name":"Enhancement","color":"fc2929"},{"url":"https://api.github.com/repos/dotnet/roslyn/labels/Language-C%23","name":"Language-C#","color":"207de5"}],"state":"open","locked":false,"assignee":{"login":"AlekseyTs","id":10522107,"avatar_url":"https://avatars.githubusercontent.com/u/10522107?v=3","gravatar_id":"","url":"https://api.github.com/users/AlekseyTs","html_url":"https://github.com/AlekseyTs","followers_url":"https://api.github.com/users/AlekseyTs/followers","following_url":"https://api.github.com/users/AlekseyTs/following{/other_user}","gists_url":"https://api.github.com/users/AlekseyTs/gists{/gist_id}","starred_url":"https://api.github.com/users/AlekseyTs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlekseyTs/subscriptions","organizations_url":"https://api.github.com/users/AlekseyTs/orgs","repos_url":"https://api.github.com/users/AlekseyTs/repos","events_url":"https://api.github.com/users/AlekseyTs/events{/privacy}","received_events_url":"https://api.github.com/users/AlekseyTs/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/dotnet/roslyn/milestones/1","labels_url":"https://api.github.com/repos/dotnet/roslyn/milestones/1/labels","id":937397,"number":1,"title":"1.0 (stable)","description":"This is our 1.0 Milestone. ","creator":{"login":"jaredpar","id":146967,"avatar_url":"https://avatars.githubusercontent.com/u/146967?v=3","gravatar_id":"","url":"https://api.github.com/users/jaredpar","html_url":"https://github.com/jaredpar","followers_url":"https://api.github.com/users/jaredpar/followers","following_url":"https://api.github.com/users/jaredpar/following{/other_user}","gists_url":"https://api.github.com/users/jaredpar/gists{/gist_id}","starred_url":"https://api.github.com/users/jaredpar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaredpar/subscriptions","organizations_url":"https://api.github.com/users/jaredpar/orgs","repos_url":"https://api.github.com/users/jaredpar/repos","events_url":"https://api.github.com/users/jaredpar/events{/privacy}","received_events_url":"https://api.github.com/users/jaredpar/received_events","type":"User","site_admin":false},"open_issues":60,"closed_issues":20,"state":"open","created_at":"2015-01-15T20:45:24Z","updated_at":"2015-02-23T20:52:00Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2015-01-25T19:33:42Z","updated_at":"2015-02-23T20:54:50Z","closed_at":null,"body":"Continue of issue #11 and fix commit e86d3640d08302b1b0fb05dcbca44842f2073198 story.\r\n\r\nThere are more places in C# where expression value is ignored - `Task`-returning `async` methods and `async` lambda expressions:\r\n\r\n```c#\r\nusing System;\r\nusing System.Threading.Tasks;\r\n\r\nclass Foo<T>\r\n{\r\n    T Method() => default(T); // returns value of unconstrained type parameter type\r\n    \r\n    void M1() => this?.Method(); // ok\r\n    \r\n    async void M2() => this?.Method(); // ok\r\n    \r\n    // error CS0023: Operator '?' cannot be applied to operand of type 'T'\r\n    async Task M3() => this?.Method();\r\n    \r\n    void M4() {\r\n        Action f1 = async () => this?.Method(); // ok\r\n        \r\n        // error CS0023: Operator '?' cannot be applied to operand of type 'T'\r\n        Func<Task> f2 = async () => this?.Method();\r\n    }\r\n}\r\n```\r\n\r\nI'm expecting this code compile fine."},"comment":{"url":"https://api.github.com/repos/dotnet/roslyn/issues/comments/75629619","html_url":"https://github.com/dotnet/roslyn/issues/74#issuecomment-75629619","issue_url":"https://api.github.com/repos/dotnet/roslyn/issues/74","id":75629619,"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-02-23T20:54:50Z","updated_at":"2015-02-23T20:54:50Z","body":"\"Area-Language Design\" tells me there may be a shortcoming of our current language design. If that is so it needs to be taken to the language design group before implementation work is planned (except perhaps as a prototype of proposed language changes)."}}