diff --git a/sources/ClangSharp/Cursors/Cursor.cs b/sources/ClangSharp/Cursors/Cursor.cs index 772d5206..e5ddef9f 100644 --- a/sources/ClangSharp/Cursors/Cursor.cs +++ b/sources/ClangSharp/Cursors/Cursor.cs @@ -65,7 +65,7 @@ public IReadOnlyList CursorChildren cursorChildrenHandle.Free(); #if NET6_0_OR_GREATER - [UnmanagedCallersOnly(CallConvs = [typeof(CallConvCdecl)])] + [UnmanagedCallersOnly(CallConvs = new System.Type[] { typeof(CallConvCdecl) })] #endif static CXChildVisitResult Visitor(CXCursor cursor, CXCursor parent, void* client_data) {