-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Replace InterceptorsPreview with InterceptorsPreviewNamespaces=global #69848
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
Conversation
| comp = CreateCompilation(new[] { (source, "Program.cs"), s_attributesSource }, parseOptions: TestOptions.Regular.WithFeature("interceptorspreview")); | ||
| comp.VerifyEmitDiagnostics(sadCaseDiagnostics); | ||
|
|
||
| verifier = CompileAndVerify(new[] { (source, "Program.cs"), s_attributesSource }, parseOptions: TestOptions.Regular.WithFeature("interceptorspreview"), expectedOutput: "1"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
@dotnet/roslyn-compiler for second review |
You should be good to go. We merged the change to move to granular opt-in in the SDK last week. cc: @layomia to make sure the correct things have been done for nupkg for the config binder. |
I started to completely remove the ability to declare interceptors in the global namespace and the test churn was just too much :)
Goal of the PR is to push people as much as possible toward granular opt-in while leaving in an undocumented global enable for expediency.