You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One scenario in particular should work: from item in list where item is not null should result in a collection of not-null items. Reported a few times (including here).
Look for references to this issue in the code, such as NullableWalker.VisitQueryClause
Also replaced some PROTOTYPE markers with a reference to this issue:
// https://github.com/dotnet/roslyn/issues/29863 Record in the node whether type// arguments were implicit, to allow for cases where the syntax is not an// invocation (such as a synthesized call from a query interpretation).privatestaticboolHasImplicitTypeArguments(BoundExpressionnode){varsyntax= node.Syntax;if(syntax.Kind()!= SyntaxKind.InvocationExpression){// Unexpected syntax kind.returnfalse;}varnameSyntax= Binder.GetNameSyntax(((InvocationExpressionSyntax)syntax).Expression,outvar _);if(nameSyntax==null){// Unexpected syntax kind.returnfalse;}nameSyntax= nameSyntax.GetUnqualifiedName();return nameSyntax.Kind()!= SyntaxKind.GenericName;}publicoverride BoundNode VisitRangeVariable(BoundRangeVariablenode){varresult=base.VisitRangeVariable(node);
SetResult(node);// PROTOTYPE(NullableReferenceTypes)returnresult;}
One scenario in particular should work:
from item in list where item is not null
should result in a collection of not-null items. Reported a few times (including here).Look for references to this issue in the code, such as
NullableWalker.VisitQueryClause
Also replaced some PROTOTYPE markers with a reference to this issue:
This was also reported here.
The text was updated successfully, but these errors were encountered: