-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Contextual return types for expression-bodied members #16044
Comments
|
|
|
@DavidArno So is async M() => new async();
async M { get => new async(); } |
|
Oh, I forgot about partial methods. In that case it does indeed appear to be a parser inconsistency issue. |
|
They are different because they are specified to be different. |
|
The spec does say, however
|
|
Fix is in for 15.7 preview 4. |
|
Thanks @alrz for the fix! |
The first line compiles; the second one does not.
Why not?
Why is
asyncdifferent frompartial?http://tryroslyn.azurewebsites.net/#b:master/f:>ilr/MYGwhgzhAEDC0G8BQBIADmATgFwJZhGgEFoBeAPmgDsBTAd2gx3xAAoBKAblUgE8rg0AEJlKtBnwEduAXyRJQkGEzwFEcxVGiTBCGUA=
The text was updated successfully, but these errors were encountered: