-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Address some PROTOTYPE comments #29607
Address some PROTOTYPE comments #29607
Conversation
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.
LGTM Thanks (iteration 1)
@@ -1734,7 +1734,6 @@ | |||
</Node> | |||
|
|||
<!-- Node only used during nullability flow analysis to represent an expression with an updated nullability --> | |||
<!-- PROTOTYPE(NullableReferenceTypes): Derive from BoundValuePlaceholderBase. --> |
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.
Cannot derive from BoundValuePlaceholderBase
since that type requires non-null Type
.
@@ -30912,7 +30913,7 @@ static T F<T>(IEnumerable<T> e) | |||
/// should not result in a warning at the call site. | |||
/// </summary> | |||
[WorkItem(26626, "https://github.com/dotnet/roslyn/issues/26626")] | |||
[Fact(Skip = "PROTOTYPE(NullableReferenceTypes): null check on default value temporarily skipped")] | |||
[Fact(Skip = "Null check on default value temporarily skipped")] |
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.
Reopened #26626.
@dotnet/roslyn-compiler please review. |
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.
Still LGTM (iteration 2)
@@ -159,8 +159,6 @@ internal static TypeSymbolWithAnnotations Create(INonNullTypesContext nonNullTyp | |||
{ | |||
isAnnotated = true; | |||
} | |||
// PROTOTYPE(NullableReferenceTypes): this defaulting logic should be removed. There are many paths that currently don't have an explicit context at the moment. | |||
nonNullTypesContext = nonNullTypesContext ?? NonNullTypesFalseContext.Instance; |
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.
nonNullTypesContext = nonNullTypesContext ?? NonNullTypesFalseContext.Instance; [](start = 12, length = 79)
Consider adding an assert that nonNullTypesContext is not null. #Resolved
@@ -1401,7 +1401,8 @@ class NonNullTypesAttribute : Attribute | |||
comp.VerifyDiagnostics(); | |||
} | |||
|
|||
[Fact(Skip = "PROTOTYPE(NullableReferenceTypes): stack overflow")] | |||
[WorkItem(29594, "https://github.com/dotnet/roslyn/issues/29594")] | |||
[Fact(Skip = "Stack overflow")] |
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.
Stack overflow [](start = 22, length = 14)
Here and in other similar places, should we use the link to the issue as the Skip reason?
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.
Having a short description avoids the need to look up the bug. Will leave as is, with link in the WorkItem
and description in Skip = "..."
.
In reply to: 214486306 [](ancestors = 214486306)
@@ -25557,7 +25558,7 @@ public class C<T> {} | |||
); | |||
} | |||
|
|||
[Fact(Skip = "NonNullTypes does not control warnings")] // PROTOTYPE(NullableReferenceTypes): Update or remove test. | |||
[Fact(Skip = "NonNullTypes does not control warnings")] // https://github.com/dotnet/roslyn/issues/29616 |
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.
#29616 [](start = 67, length = 45)
Here and in other similar places, consider adding a WorkItem attribute. #Resolved
@@ -37,6 +35,9 @@ public void Bug18280() | |||
var arr = x.Type.TypeSymbol; | |||
|
|||
arr.GetHashCode(); | |||
// PROTOTYPE(NullableReferenceTypes): StackOverflowException in |
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.
// PROTOTYPE(NullableReferenceTypes): StackOverflowException in [](start = 12, length = 63)
Why leave this comment if test passes? #Closed
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.
The commented out line will result in a StackOverflowException
when uncommented.
In reply to: 214486835 [](ancestors = 214486835)
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.
LGTM (iteration 2)
No description provided.