Skip to content

Commit 4567ec9

Browse files
Update sources/ClangSharp.PInvokeGenerator/PInvokeGenerator.cs
Co-authored-by: Tanner Gooding <[email protected]>
1 parent b902878 commit 4567ec9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sources/ClangSharp.PInvokeGenerator/PInvokeGenerator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5522,7 +5522,7 @@ private static bool IsType<T>(Cursor? cursor, Type type, [MaybeNullWhen(false)]
55225522
else if (templateSpecializationType.TemplateName.AsTemplateDecl is TemplateDecl templateDecl)
55235523
{
55245524
// We exclude InjectedClassNameType here to avoid infinite recursion.
5525-
if (templateDecl.TemplatedDecl is TypeDecl { TypeForDecl: not InjectedClassNameType } typeDecl)
5525+
if ((templateDecl.TemplatedDecl is TypeDecl typeDecl) && (typeDecl.TypeForDecl is not InjectedClassNameType ))
55265526
{
55275527
return IsType(cursor, typeDecl.TypeForDecl, out value);
55285528
}

0 commit comments

Comments
 (0)