Skip to content

Commit

Permalink
CR feedback on fix for #8441
Browse files Browse the repository at this point in the history
  • Loading branch information
VSadov committed Feb 19, 2016
1 parent d07de12 commit d5c1963
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,7 @@ internal TypeSymbol ComputeReturnType()
diagnostics.Add(ErrorCode.ERR_BadAsyncReturn, this.Locations[0]);
}

var returnsVoid = returnType.SpecialType == SpecialType.System_Void;
if (this.RefKind != RefKind.None && returnsVoid)
if (this.RefKind != RefKind.None && returnType.SpecialType == SpecialType.System_Void)
{
diagnostics.Add(ErrorCode.ERR_VoidReturningMethodCannotReturnByRef, this.Locations[0]);
}
Expand Down

0 comments on commit d5c1963

Please sign in to comment.