-
Notifications
You must be signed in to change notification settings - Fork 134
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
Add tests for out and ref parameter data flow #2633
Conversation
[ExpectedWarning ("IL2072", nameof (TryGetAnnotatedValue))] | ||
[ExpectedWarning ("IL2072", nameof (TryGetAnnotatedValue))] | ||
// https://github.com/dotnet/linker/issues/2632 | ||
// This second warning should not be generated, the value of typeWithMethods should have PublicMethods |
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.
Nit: third warning
typeWithMethods.RequiresPublicMethods (); | ||
} | ||
|
||
[ExpectedWarning ("IL2072", nameof (TryGetAnnotatedValue))] |
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.
nit: TryGetAnnotatedValueFromValue to be consistent, not actually important from the standpoint of the testing infra
[ExpectedWarning ("IL2072", nameof (TryGetAnnotatedValue))] | ||
// https://github.com/dotnet/linker/issues/2632 | ||
// This second warning should not be generated, the value of typeWithMethods should have PublicMethods | ||
// after the call with out parameter. |
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.
nit: with ref parameter
[ExpectedWarning ("IL2072", nameof (TryGetAnnotatedValue))] | ||
[ExpectedWarning ("IL2072", nameof (TryGetAnnotatedValue))] | ||
// https://github.com/dotnet/linker/issues/2632 | ||
// This second warning should not be generated, the value of typeWithMethods should have PublicMethods |
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.
nit: third
434f585
to
d658b31
Compare
This adds tests for dotnet/runtime#101734