You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After updating an external library that I'm using for OrderedDictionary, the code suddenly started throwing an exception:
System.Reflection.AmbiguousMatchException: Ambiguous match found.
at System.RuntimeType.GetMethodImplCommon(String name, Int32 genericParameterCount, BindingFlags bindingAttr, Binder binder, CallingConventions callConv, Type[] types, ParameterModifier[] modifiers)
at System.RuntimeType.GetMethodImpl(String name, BindingFlags bindingAttr, Binder binder, CallingConventions callConv, Type[] types, ParameterModifier[] modifiers)
at System.Type.GetMethod(String name, BindingFlags bindingAttr)
at System.Type.GetMethod(String name)
at Legivel.Customization.Mapping.Legivel-Mapper-Model-IYamlToNativeMapping-map@456-17.Invoke(Tuple`2 tupledArg)
at Microsoft.FSharp.Collections.ListModule.Iterate[T](FSharpFunc`2 action, FSharpList`1 list) in /build/dotnet6-vdouV1/dotnet6-6.0.110/src/fsharp/artifacts/source-build/self/src/src/fsharp/FSharp.Core/list.fs:line 102
at Legivel.Customization.Mapping.Legivel-Mapper-Model-IYamlToNativeMapping-map@444-14.Invoke(FSharpList`1 possibleData)
at [email protected](RecordFieldMapping fm)
at Legivel.Customization.Mapping.mapKeyValue@209(RecordMappingInfo this, ProcessMessages msgList, AllTryFindIdiomaticMappers mappers, ProcessMessages pm, Node org, String kn, Node v)
at Legivel.Customization.Mapping.Legivel-Mapper-Model-IYamlToNativeMapping-map@229-7.Invoke(NodeData`1 kf)
at Microsoft.FSharp.Primitives.Basics.List.map[T,TResult](FSharpFunc`2 mapping, FSharpList`1 x) in /build/dotnet6-vdouV1/dotnet6-6.0.110/src/fsharp/artifacts/source-build/self/src/src/fsharp/FSharp.Core/local.fs:line 244
...
My workaround for was to pin the Open.Collections library to an older version, however I'm sharing this reproduction here, because I assume it might be a bug in Legivel: OrderedDictionary<'K,'V> properly implements System.Collections.Generic.IDictionary<'K,'V> interface, so there's no reason Legivel wouldn't recognize it as such and call dictionary methods on its instances.
The text was updated successfully, but these errors were encountered:
I have found an issue with Legivel and I'm providing reproduction code below.
After updating an external library that I'm using for OrderedDictionary, the code suddenly started throwing an exception:
My workaround for was to pin the Open.Collections library to an older version, however I'm sharing this reproduction here, because I assume it might be a bug in Legivel:
OrderedDictionary<'K,'V>
properly implementsSystem.Collections.Generic.IDictionary<'K,'V>
interface, so there's no reason Legivel wouldn't recognize it as such and call dictionary methods on its instances.The text was updated successfully, but these errors were encountered: