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-05-08 20:01:00 +0300
committerGitHub <noreply@github.com>2017-05-08 20:01:00 +0300
commitec102f76499b615432f7a687b0056440e19160bc (patch)
treea7ebdec37e8dbdd222a7c97aa195427a86724068 /src/System.Private.CoreLib
parent3432533becab7f798d88569ac5dad1dd59dadaae (diff)
Fix more CoreFx on ILC tests (#3547)
A bunch of one-bucket items combined into one commit for efficiency... - Port over new Array.Copy behavior https://github.com/dotnet/coreclr/pull/11266 - Fix initial value for AssemblyName.VersionCompatibility - Enforce the traditional restrictions on stacking ByRefs and stacking Pointers on ByRefs. - Remove the restriction on GetTypeFromCLSID().MakeArrayType() (https://github.com/dotnet/corert/issues/3522) - Allow IsAssignable() to take a TypeDelegator (or anything else that wraps a runtime type.)
Diffstat (limited to 'src/System.Private.CoreLib')
-rw-r--r--src/System.Private.CoreLib/src/System/Array.CoreRT.cs6
-rw-r--r--src/System.Private.CoreLib/src/System/Reflection/AssemblyName.cs1
2 files changed, 2 insertions, 5 deletions
diff --git a/src/System.Private.CoreLib/src/System/Array.CoreRT.cs b/src/System.Private.CoreLib/src/System/Array.CoreRT.cs
index a6f7e2421..885b6a89b 100644
--- a/src/System.Private.CoreLib/src/System/Array.CoreRT.cs
+++ b/src/System.Private.CoreLib/src/System/Array.CoreRT.cs
@@ -602,11 +602,7 @@ namespace System
nuint srcElementSize = sourceArray.ElementSize;
nuint destElementSize = destinationArray.ElementSize;
- // Compat: Why this asymmetrical treatment of enums?
- if (destinationElementEEType.IsEnum)
- throw new ArrayTypeMismatchException(SR.ArrayTypeMismatch_CantAssignType);
-
- if (sourceElementEEType.IsEnum && sourceElementType != destElementType)
+ if ((sourceElementEEType.IsEnum || destinationElementEEType.IsEnum) && sourceElementType != destElementType)
throw new ArrayTypeMismatchException(SR.ArrayTypeMismatch_CantAssignType);
if (reliable)
diff --git a/src/System.Private.CoreLib/src/System/Reflection/AssemblyName.cs b/src/System.Private.CoreLib/src/System/Reflection/AssemblyName.cs
index 561d3a538..d55c2f9d4 100644
--- a/src/System.Private.CoreLib/src/System/Reflection/AssemblyName.cs
+++ b/src/System.Private.CoreLib/src/System/Reflection/AssemblyName.cs
@@ -21,6 +21,7 @@ namespace System.Reflection
}
public AssemblyName(string assemblyName)
+ : this()
{
if (assemblyName == null)
throw new ArgumentNullException(nameof(assemblyName));