|
|
|
@ -2032,7 +2032,7 @@ namespace ICSharpCode.NRefactory.CSharp.Resolver |
|
|
|
Analyze(); |
|
|
|
Analyze(); |
|
|
|
if (returnValues.Count == 1) { |
|
|
|
if (returnValues.Count == 1) { |
|
|
|
bodyRR = returnValues[0]; |
|
|
|
bodyRR = returnValues[0]; |
|
|
|
if (!actualReturnType.Equals(SpecialType.UnknownType)) { |
|
|
|
if (!actualReturnType.IsKnownType(KnownTypeCode.Void)) { |
|
|
|
var conv = storedContext.conversions.ImplicitConversion(bodyRR, actualReturnType); |
|
|
|
var conv = storedContext.conversions.ImplicitConversion(bodyRR, actualReturnType); |
|
|
|
if (!conv.IsIdentityConversion) |
|
|
|
if (!conv.IsIdentityConversion) |
|
|
|
bodyRR = new ConversionResolveResult(actualReturnType, bodyRR, conv, storedContext.CheckForOverflow); |
|
|
|
bodyRR = new ConversionResolveResult(actualReturnType, bodyRR, conv, storedContext.CheckForOverflow); |
|
|
|
|