Skip to content
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

Merged

Conversation

cston
Copy link
Member

@cston cston commented Aug 31, 2018

No description provided.

@cston cston requested a review from a team as a code owner August 31, 2018 04:16
Copy link
Member

@jcouv jcouv left a 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)

@jcouv jcouv self-assigned this Aug 31, 2018
@jcouv jcouv added this to the 16.0 milestone Aug 31, 2018
@@ -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. -->
Copy link
Member Author

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")]
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reopened #26626.

@cston
Copy link
Member Author

cston commented Aug 31, 2018

@dotnet/roslyn-compiler please review.

Copy link
Member

@jcouv jcouv left a 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;
Copy link
Contributor

@AlekseyTs AlekseyTs Aug 31, 2018

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")]
Copy link
Contributor

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?

Copy link
Member Author

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
Copy link
Contributor

@AlekseyTs AlekseyTs Aug 31, 2018

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
Copy link
Contributor

@AlekseyTs AlekseyTs Aug 31, 2018

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

Copy link
Member Author

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)

Copy link
Contributor

@AlekseyTs AlekseyTs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM (iteration 2)

@cston cston merged commit 2ad93d9 into dotnet:features/NullableReferenceTypes Aug 31, 2018
@cston cston deleted the prototype-comments branch August 31, 2018 23:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants