Browse Source

Correctly set kind of compound types.

newNRvisualizers
Mike Krüger 14 years ago
parent
commit
434ec17d9a
  1. 1
      ICSharpCode.NRefactory/TypeSystem/Implementation/CompoundTypeDefinition.cs

1
ICSharpCode.NRefactory/TypeSystem/Implementation/CompoundTypeDefinition.cs

@ -85,6 +85,7 @@ namespace ICSharpCode.NRefactory.TypeSystem.Implementation @@ -85,6 +85,7 @@ namespace ICSharpCode.NRefactory.TypeSystem.Implementation
compound = new CompoundTypeDefinition(mainPart.ProjectContent, mainPart.Namespace, mainPart.Name);
}
compound.parts = parts;
compound.Kind = mainPart.Kind;
compound.Region = mainPart.Region;
compound.BodyRegion = mainPart.BodyRegion;
compound.TypeParameters.AddRange(mainPart.TypeParameters);

Loading…
Cancel
Save