Skip to content

Commit 8c394af

Browse files
committed
Simplified a type map in the tests.
Signed-off-by: Dimitar Dobrev <[email protected]>
1 parent 8536fc9 commit 8c394af

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

tests/CSharp/CSharp.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -142,10 +142,7 @@ private static Type GetEnumType(Type mappedType)
142142
ClassTemplateSpecialization classTemplateSpecialization;
143143
var templateSpecializationType = type as TemplateSpecializationType;
144144
if (templateSpecializationType != null)
145-
{
146-
classTemplateSpecialization = templateSpecializationType.GetClassTemplateSpecialization();
147-
return classTemplateSpecialization.Arguments[0].Type.Type;
148-
}
145+
return templateSpecializationType.Arguments[0].Type.Type;
149146
var declaration = ((TagType) type).Declaration;
150147
if (declaration.IsDependent)
151148
return new TagType(((Class) declaration).TemplateParameters[0]);

0 commit comments

Comments
 (0)