Introduce warning for multiple entry points (sync + async)#46832
Introduce warning for multiple entry points (sync + async)#46832jcouv merged 33 commits intodotnet:masterfrom
Conversation
|
@Youssef1313 I'm going to convert this to a draft. Feel free to convert back when it's ready. |
|
@RikkiGibson Can you have a look at this CI issue please?
|
|
Looks like an infra outage, let's retry the build in a few minutes. I think you can do this by closing+reopening your PR. |
|
Closing and reopening doesn't seem to restart the CI. I think it works only for employees. I'll make an empty commit now to retry. |
|
I believe that for compatibility purposes, the diagnostic for this case should be a warning, and it should be produced only in a warning wave. |
|
@gafter Wouldn't it be more convenient to introduce this as a breaking change? I also would like to know more info on the warning wave thing, and how its process goes. |
This isn't really an option. We take backcompat seriously, and introducing a new warning that cannot be opted out of is absolutely a backcompat break. You'll need to add the warning to the level 5 switch here: http://sourceroslyn.io/#Microsoft.CodeAnalysis.CSharp/Errors/ErrorFacts.cs,210, and make sure to follow the |
|
@333fred Thanks. I'll change it to a warning. But I still need to know where my implementation went wrong. Thanks in advance. |
RikkiGibson
left a comment
There was a problem hiding this comment.
Looks good, just had a few minor comments
|
This is looking very close. I think Rikki's couple of comments and then it'll be good. |
|
Oh, and we need to add this warning to the list here: https://github.com/dotnet/roslyn/blob/master/docs/compilers/CSharp/Warnversion%20Warning%20Waves.md |
|
@RikkiGibson @333fred Thanks for the help you provided too! ❤️ |
|
@RikkiGibson @333fred Should I restart CI on this one? Pinging @jaredpar for review. |
|
Have rekicked the failing CI leg. |
|
Looking |
|
Merged/squashed. Thanks @Youssef1313 ! |
…-only-errors * upstream/master: (236 commits) Fix bug when "End statement" is used in single-line if (dotnet#47062) Solution asset cache refactoring (dotnet#46948) add specific tests to validate behavior between keys and snapshots Extract into separate files rename parameters rename parameters rename parameters rename parameters Add CancellationToken parameters to SyntaxTreeOptionsProvider Reuse nullable override checks for delegate conversions (dotnet#46953) Introduce warning for multiple entry points (sync + async) (dotnet#46832) Switch from throwing NotImplementedException and return E_NOTIMPL Delete Building for Core CLR.md (dotnet#47146) Adjust PrintMembers to avoid boxing and avoid extra space (dotnet#47095) Track asynchronous operation in InProcLanguageServer Use Task.FromCanceled where appropriate Apply suggestions from code review Address feedback Expose ParseOptions on generator context (dotnet#46919) Remove redundant statement in added tests ...
Fixes #46831
Summary