Browse Source

Included interfaces in type parameter base types.

newNRvisualizers
Mike Krüger 14 years ago
parent
commit
a81096dff8
  1. 2
      ICSharpCode.NRefactory/TypeSystem/Implementation/BaseTypeCollector.cs

2
ICSharpCode.NRefactory/TypeSystem/Implementation/BaseTypeCollector.cs

@ -61,7 +61,7 @@ namespace ICSharpCode.NRefactory.TypeSystem.Implementation @@ -61,7 +61,7 @@ namespace ICSharpCode.NRefactory.TypeSystem.Implementation
// (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;

Loading…
Cancel
Save