Fix TypeBuilder's base type in ref (#42947)
authorStephen Toub <stoub@microsoft.com>
Fri, 9 Oct 2020 10:14:22 +0000 (06:14 -0400)
committerGitHub <noreply@github.com>
Fri, 9 Oct 2020 10:14:22 +0000 (06:14 -0400)
commit39e080d5c51f30afb3862de6b805bebd1d24a6f1
tree09b95d162f8bdc859efdf350e8a7065cc9a5123d
parent2a20b1aa49e088a150107dfc880173a2f6d0fa84
Fix TypeBuilder's base type in ref (#42947)

* Fix Type/Enum/GenericTypeParameterBuilders' base types in ref

* Fix mono's EnumBuilder.IsAssignableFrom implementation

With the ref change, a test started failing because the C# compiler started generating a call to TypeInfo's IsAssignableFrom(TypeInfo) rather than Type's IsAssignableFrom(TypeInfo).
src/libraries/System.Reflection.Emit/ref/System.Reflection.Emit.cs
src/mono/netcore/System.Private.CoreLib/src/System/Reflection/Emit/EnumBuilder.Mono.cs