Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed bug.

  • Loading branch information...
commit b36846581b038896fd664f8f701e8cffe563eaa8 1 parent 99b60b8
@mkrueger mkrueger authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  ICSharpCode.NRefactory/CSharp/Resolver/MemberLookup.cs
View
2  ICSharpCode.NRefactory/CSharp/Resolver/MemberLookup.cs
@@ -167,7 +167,7 @@ public ResolveResult Lookup(IType type, string name, IList<IType> typeArguments,
// Consider nested types only if it's not an invocation. The type parameter count must match in this case.
Predicate<ITypeDefinition> typeFilter = delegate (ITypeDefinition d) {
// inner types contain the type parameters of outer types. therefore this count has to been adjusted.
- int correctedCount = d.TypeParameterCount - type.TypeParameterCount;
+ int correctedCount = d.TypeParameterCount - (d.DeclaringType != null ? d.DeclaringType.TypeParameterCount : 0);
return correctedCount == typeArgumentCount && d.Name == name && IsAccessible(d, true);
};
types.AddRange(type.GetNestedTypes(context, typeFilter));
Please sign in to comment.
Something went wrong with that request. Please try again.