Permalink
Browse files

Included interfaces in type parameter base types.

  • Loading branch information...
1 parent 2bc6105 commit a81096dff8e6810176aace9f81119aa74512bf26 @mkrueger mkrueger committed Oct 24, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 ICSharpCode.NRefactory/TypeSystem/Implementation/BaseTypeCollector.cs
@@ -61,7 +61,7 @@ public void CollectBaseTypes(IType type)
// (e.g. C implements I1 and I2, and both interfaces derive from Object)
if (!this.Contains(type)) {
foreach (IType baseType in type.GetBaseTypes(context)) {
- if (SkipImplementedInterfaces && def != null && def.Kind != TypeKind.Interface) {
+ if (SkipImplementedInterfaces && def != null && def.Kind != TypeKind.Interface && def.Kind != TypeKind.TypeParameter) {
if (baseType.Kind == TypeKind.Interface) {
// skip the interface
continue;

0 comments on commit a81096d

Please sign in to comment.