Skip to content

Commit

Permalink
Update src/coreclr/tools/Common/Internal/Runtime/EETypeBuilderHelpers.cs
Browse files Browse the repository at this point in the history
Co-authored-by: Michal Strehovský <MichalStrehovsky@users.noreply.github.com>
  • Loading branch information
AustinWise and MichalStrehovsky committed Dec 3, 2022
1 parent 3da32c9 commit 2ec8884
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ private static bool IsTrackedReferenceWithFinalizer(TypeDesc type)
if (!type.HasFinalizer)
return false;

if (type is MetadataType mdType && mdType.HasCustomAttribute("System.Runtime.InteropServices.ObjectiveC", "ObjectiveCTrackedTypeAttribute"))
if ((MetadataType)type).HasCustomAttribute("System.Runtime.InteropServices.ObjectiveC", "ObjectiveCTrackedTypeAttribute"))
return true;

type = type.BaseType;
Expand Down

0 comments on commit 2ec8884

Please sign in to comment.