Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corert.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAtsushi Kanamori <AtsushiKan@users.noreply.github.com>2017-09-01 23:45:17 +0300
committerGitHub <noreply@github.com>2017-09-01 23:45:17 +0300
commitcc9d93f207b4d2265a700433b23d08b74655c364 (patch)
tree0b1988ebc327ba4793e7c210ec27305df8af338d /src/System.Private.Reflection.Core
parent13ea6e4d1b9641f18ab7280bced0674784367766 (diff)
Fix regression in ILC corefx runs (#4442)
Fixes https://github.com/dotnet/corefx/issues/23733 Fixes https://github.com/dotnet/corefx/issues/23726 Fixes https://github.com/dotnet/corefx/issues/23725 Broke the compat ability to pass a generic type definition as an argument to MakeGenericType().
Diffstat (limited to 'src/System.Private.Reflection.Core')
-rw-r--r--src/System.Private.Reflection.Core/src/System/Reflection/Runtime/TypeInfos/RuntimeTypeInfo.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/System.Private.Reflection.Core/src/System/Reflection/Runtime/TypeInfos/RuntimeTypeInfo.cs b/src/System.Private.Reflection.Core/src/System/Reflection/Runtime/TypeInfos/RuntimeTypeInfo.cs
index 3919b5f58..1e3cd5be5 100644
--- a/src/System.Private.Reflection.Core/src/System/Reflection/Runtime/TypeInfos/RuntimeTypeInfo.cs
+++ b/src/System.Private.Reflection.Core/src/System/Reflection/Runtime/TypeInfos/RuntimeTypeInfo.cs
@@ -460,7 +460,7 @@ namespace System.Reflection.Runtime.TypeInfos
// Desktop compatibility: Treat generic type definitions as a constructed generic type using the generic parameters as type arguments.
if (runtimeTypeArgument.IsGenericTypeDefinition)
- runtimeTypeArgument = runtimeTypeArgument.GetConstructedGenericType(runtimeTypeArgument.RuntimeGenericTypeParameters);
+ runtimeTypeArgument = runtimeTypeArguments[i] = runtimeTypeArgument.GetConstructedGenericType(runtimeTypeArgument.RuntimeGenericTypeParameters);
if (runtimeTypeArgument.IsByRefLike)
throw new TypeLoadException(SR.CannotUseByRefLikeTypeInInstantiation);