Skip to content

Commit c296818

Browse files
committed
Fix preprocessor directive placement in policy class
Moved the UNITY_2023_2_OR_NEWER preprocessor directive to wrap the entire file instead of just the class, ensuring the file is only included for compatible Unity versions.
1 parent bd209f6 commit c296818

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Assets/MackySoft/MackySoft.SerializeReferenceExtensions/Editor/Unity_2023_2_OrNewer_GenericVarianceTypeCompatibilityPolicy.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
using System;
1+
#if UNITY_2023_2_OR_NEWER
2+
using System;
23
using System.Reflection;
34

45
namespace MackySoft.SerializeReferenceExtensions.Editor
56
{
6-
#if UNITY_2023_2_OR_NEWER
77
public sealed class Unity_2023_2_OrNewer_GenericVarianceTypeCompatibilityPolicy : ITypeCompatibilityPolicy
88
{
99

@@ -124,5 +124,5 @@ private static bool AreAllGenericArgumentsCompatible (Type[] genericTypeParamete
124124
return true;
125125
}
126126
}
127-
#endif
128-
}
127+
}
128+
#endif

0 commit comments

Comments
 (0)