Skip to content

AF: System.RuntimeType.CheckValue trying to reflection invoke method with equivalent types #73103

@jkotas

Description

@jkotas

Repro

git clone https://github.com/jkotas/EquivalentTypes
cd EquivalentTypes
dotnet publish -r win-x64 --self-contained

bin\Debug\net7.0\win-x64\publish\test.exe

Actual result

Process terminated. Assertion failed.
   at System.RuntimeType.CheckValue(Object& value, ParameterCopyBackAction& copyBack, Binder binder, CultureInfo culture, BindingFlags invokeAttr)
   at System.Reflection.MethodBase.CheckArguments(Span`1 copyOfParameters, IntPtr* byrefParameters, Span`1 shouldCopyBack, ReadOnlySpan`1 parameters, RuntimeType[] sigTypes, Binder binder, CultureInfo culture, BindingFlags invokeAttr)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)

Expected result

No asserts

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions