Open slozier opened 2 months ago
For example, in .NET 8 the following overload is added:
public static Dictionary<TKey,TValue> ToDictionary<TKey,TValue> (this IEnumerable<KeyValuePair<TKey,TValue>> source);
Since PythonDictionary is an IEnumerable<KeyValuePair<object, object>> the extension method should be callable:
PythonDictionary
IEnumerable<KeyValuePair<object, object>>
import clr clr.AddReference("System.Linq") from System.Linq import Enumerable clr.ImportExtensions(Enumerable) {}.ToDictionary()
This causes an assertion error when running test_cliclass.test_extension_methods in Debug mode.
test_cliclass.test_extension_methods
Debug
For example, in .NET 8 the following overload is added:
Since
PythonDictionary
is anIEnumerable<KeyValuePair<object, object>>
the extension method should be callable:This causes an assertion error when running
test_cliclass.test_extension_methods
inDebug
mode.