Setting value of enums didn't properly widen the value when setting (#43779)
authorDavid Wrighton <davidwr@microsoft.com>
Mon, 26 Oct 2020 18:41:25 +0000 (11:41 -0700)
committerGitHub <noreply@github.com>
Mon, 26 Oct 2020 18:41:25 +0000 (11:41 -0700)
commitc08ac77e677cb42a7f01785c6158519a4045ee38
tree730d5b7f4797d1d411dca918c5c435a391cc3995
parentb0be1ab8c7a2c5cd3b140d5f27aba6c73b79cce6
Setting value of enums didn't properly widen the value when setting (#43779)

Use VerifierCorElementType instead of SignatureCorElementType to specify the element type of the target field
- This will send the runtime down the path which can perform primitive widening
src/coreclr/src/vm/reflectioninvocation.cpp
src/libraries/System.Reflection/tests/FieldInfoTests.cs
src/libraries/System.Reflection/tests/PropertyInfoTests.cs