Browse Source

Simplified a type map in the tests.

Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
pull/1139/head
Dimitar Dobrev 7 years ago
parent
commit
8c394afd86
  1. 5
      tests/CSharp/CSharp.cs

5
tests/CSharp/CSharp.cs

@ -142,10 +142,7 @@ namespace CppSharp.Tests @@ -142,10 +142,7 @@ namespace CppSharp.Tests
ClassTemplateSpecialization classTemplateSpecialization;
var templateSpecializationType = type as TemplateSpecializationType;
if (templateSpecializationType != null)
{
classTemplateSpecialization = templateSpecializationType.GetClassTemplateSpecialization();
return classTemplateSpecialization.Arguments[0].Type.Type;
}
return templateSpecializationType.Arguments[0].Type.Type;
var declaration = ((TagType) type).Declaration;
if (declaration.IsDependent)
return new TagType(((Class) declaration).TemplateParameters[0]);

Loading…
Cancel
Save