Browse Source

Secured potential cast exception.

TODO: Work on a better representation of that case.
pull/32/merge
Mike Krüger 13 years ago
parent
commit
cb38702a55
  1. 2
      ICSharpCode.NRefactory.CSharp/Resolver/OverloadResolution.cs

2
ICSharpCode.NRefactory.CSharp/Resolver/OverloadResolution.cs

@ -950,7 +950,7 @@ namespace ICSharpCode.NRefactory.CSharp.Resolver @@ -950,7 +950,7 @@ namespace ICSharpCode.NRefactory.CSharp.Resolver
if (member == null)
throw new InvalidOperationException();
if (this.IsExtensionMethodInvocation)
if (this.IsExtensionMethodInvocation && member is SpecializedMethod)
((SpecializedMethod)member).IsExtendedExtensionMethod = true;
return new CSharpInvocationResolveResult(
this.IsExtensionMethodInvocation ? new TypeResolveResult(member.DeclaringType) : targetResolveResult,

Loading…
Cancel
Save