Skip to content

Commit

Permalink
PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
cston committed Jul 31, 2020
1 parent cfc02b0 commit 60f9b3c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/Compilers/CSharp/Portable/FlowAnalysis/NullableWalker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,8 @@ void enforceMemberNotNull(SyntaxNode? syntaxOpt, LocalState state)
return;
}

if (_symbol is MethodSymbol method)
var method = _symbol as MethodSymbol;
if (method is object)
{
do
{
Expand Down Expand Up @@ -555,7 +556,8 @@ bool memberHasBadState(Symbol member, LocalState state)

void makeNotNullMembersMaybeNull()
{
if (_symbol is MethodSymbol method)
var method = _symbol as MethodSymbol;
if (method is object)
{
do
{
Expand Down Expand Up @@ -6853,7 +6855,7 @@ private MethodSymbol CheckMethodGroupReceiverNullability(BoundMethodGroup group,
arguments.Add(new BoundExpressionWithNullability(syntax, new BoundParameter(syntax, parameter), parameterType.NullableAnnotation, parameterType.Type));
}
Debug.Assert(_binder is object);
method = InferMethodTypeArguments(_binder!, method, arguments.ToImmutableAndFree(), argumentRefKindsOpt: default, argsToParamsOpt: default, expanded: false);
method = InferMethodTypeArguments(_binder, method, arguments.ToImmutableAndFree(), argumentRefKindsOpt: default, argsToParamsOpt: default, expanded: false);
}
if (invokedAsExtensionMethod)
{
Expand Down

0 comments on commit 60f9b3c

Please sign in to comment.