Handle GenericParameterDesc's in validation (#1063)
authorFadi Hanna <fadim@microsoft.com>
Thu, 19 Dec 2019 18:04:52 +0000 (10:04 -0800)
committerGitHub <noreply@github.com>
Thu, 19 Dec 2019 18:04:52 +0000 (10:04 -0800)
src/coreclr/src/tools/Common/Compiler/CompilerTypeSystemContext.Validation.cs

index 34db026..e50d892 100644 (file)
@@ -105,6 +105,10 @@ namespace ILCompiler
             {
                 ThrowHelper.ThrowTypeLoadException(ExceptionStringID.ClassLoadGeneral, type);
             }
+            else if (type.IsGenericParameter)
+            {
+                return type;
+            }
             else
             {
                 // Validate classes, structs, enums, interfaces, and delegates