From 96283e631421ab64dab08f655509ab9a48551443 Mon Sep 17 00:00:00 2001 From: Dawid Pietrykowski Date: Wed, 8 Jan 2025 15:53:49 +0100 Subject: [PATCH] Port fix for .NET 9 from IronLanguages/ironpython3#1807 to ironpython2 --- Src/IronPython/Runtime/Types/NewTypeMaker.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Src/IronPython/Runtime/Types/NewTypeMaker.cs b/Src/IronPython/Runtime/Types/NewTypeMaker.cs index b878a8e91..ca0f96ffe 100644 --- a/Src/IronPython/Runtime/Types/NewTypeMaker.cs +++ b/Src/IronPython/Runtime/Types/NewTypeMaker.cs @@ -540,6 +540,7 @@ private void ImplementCustomTypeDescriptor() { ImplementInterface(typeof(ICustomTypeDescriptor)); foreach (MethodInfo m in typeof(ICustomTypeDescriptor).GetMethods()) { + if (!m.IsAbstract) continue; ImplementCTDOverride(m); } }