Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Add tests for nullable metadata and unconditionally set nullablePublicOnly#39395

Merged
safern merged 4 commits intodotnet:masterfrom
safern:AddTestsForNullableMetadata
Jul 15, 2019
Merged

Add tests for nullable metadata and unconditionally set nullablePublicOnly#39395
safern merged 4 commits intodotnet:masterfrom
safern:AddTestsForNullableMetadata

Conversation

@safern
Copy link
Member

@safern safern commented Jul 11, 2019

This consumes the new compiler which now only emits the NullablePublicOnlyAttribute into the module only if it is actually needed and I also added tests to make sure the facades doesn't have any type definitions nor this attribute, plus tests to make sure that internal APIs doesn't get nullable attributes.

Fixes: #39175

cc: @stephentoub @ericstj @ViktorHofer

@safern
Copy link
Member Author

safern commented Jul 11, 2019

Note, this is easier to review by commits, the last commit is just a pure darc update for arcade.

@safern safern force-pushed the AddTestsForNullableMetadata branch from 8850cdc to 875cc4d Compare July 11, 2019 17:21
@safern
Copy link
Member Author

safern commented Jul 11, 2019

I've added positive tests and made them a Theory to validate with multiple types. PTAL.

@safern safern force-pushed the AddTestsForNullableMetadata branch 3 times, most recently from 6895bfa to 2922b7b Compare July 12, 2019 17:03
@safern safern force-pushed the AddTestsForNullableMetadata branch from 2922b7b to 31a8ad2 Compare July 12, 2019 22:15
@safern safern merged commit 08cd402 into dotnet:master Jul 15, 2019
@safern safern deleted the AddTestsForNullableMetadata branch July 15, 2019 17:37
@karelz karelz added this to the 3.0 milestone Jul 16, 2019
picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
…cOnly (dotnet/corefx#39395)

* Add tests for nullable compiler emitted attributes

* Set nullablePublicOnly compiler feature unconditionally

* PR Feedback

* PR Feedback -- add positive and more exhaustive tests


Commit migrated from dotnet/corefx@08cd402
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add validation for compiler emitted attributes to be present where they need to be

5 participants