Compiler\DependencyAnalysis\ReadyToRun\TypeValidationChecker.cs (43)
123AddTypeValidationError(type, "BaseType failed validation");
135AddTypeValidationError(type, $"Interface type {interfaceType} failed validation");
141AddTypeValidationError(type, $"Runtime interface {interfaceType} is not an interface");
158AddTypeValidationError(type, $"Field {field.GetName()}'s type failed validation");
178AddTypeValidationError(type, $"Signature could not be loaded for method {method.GetName()}");
185AddTypeValidationError(type, $"Is enum type with a method");
196AddTypeValidationError(type, $"{method} is an abstract method with a non-zero RVA");
202AddTypeValidationError(type, $"{method} is an miRuntime method with a non-zero RVA");
208AddTypeValidationError(type, $"{method} is an internal call method with a non-zero RVA");
215AddTypeValidationError(type, $"abstract method {method} defined on non-abstract type");
223AddTypeValidationError(type, $"instance abstract method {method} not marked as virtual");
234AddTypeValidationError(type, $"Special name method {method} defined on interface");
244AddTypeValidationError(type, $"'{method}' is both virtual and a p/invoke");
250AddTypeValidationError(type, $"'{method}' is a virtual static method not defined on an interface");
256AddTypeValidationError(type, $"'{method}' is a virtual constructor");
265AddTypeValidationError(type, $"'{method}' is synchronized method on a value type");
272AddTypeValidationError(type, $"'{method}' is an instance method defined on the global <module> type");
281AddTypeValidationError(type, $"'{method}' is an pinvoke defined on a generic type");
286AddTypeValidationError(type, $"'{method}' is an pinvoke defined as a generic method");
295AddTypeValidationError(type, $"'{method}' is an internal call generic method");
300AddTypeValidationError(type, $"'{method}' is an internal call method on generic type");
307AddTypeValidationError(type, $"'{method}' is an runtime-impl generic method");
317AddTypeValidationError(type, $"'{method}' has invalid variance in signature");
328AddTypeValidationError(type, $"'{method}' has invalid variance in generic parameter constraint {constraint} on type {genericParameterType}");
336AddTypeValidationError(type, $"'{method}' has cyclical generic parameter constraints");
356AddTypeValidationError(type, $"'{type}' has invalid variance in in interface impl of {interfaceType}");
366AddTypeValidationError(type, $"'{type}' has cyclical generic parameter constraints");
384AddTypeValidationError(type, $"MethodImpl with Body '{methodBody}' and Decl '{methodDecl}' do not have matching signatures");
390AddTypeValidationError(type, $"MethodImpl with Decl '{methodDecl}' points at non-virtual decl method");
396AddTypeValidationError(type, $"MethodImpl with Decl '{methodDecl}' points at sealed decl method");
403AddTypeValidationError(type, $"MethodImpl with Body '{methodBody}' and Decl '{methodDecl}' implements interface on another interface with a non-sealed method");
409AddTypeValidationError(type, $"MethodImpl with Body '{methodBody}' and Decl '{methodDecl}' implements a static virtual method with a virtual static method");
415AddTypeValidationError(type, $"MethodImpl with Body '{methodBody}' and Decl '{methodDecl}' implements a instance virtual method with a non-virtual instance method");
422AddTypeValidationError(type, $"Multiple MethodImpl records override '{methodDecl}'");
456AddTypeValidationError(type, $"Interface method '{interfaceMethod}' overridden by method '{resolvedMethod}' which does not have matching generic constraints");
469AddTypeValidationError(type, $"Interface method '{interfaceMethod}' does not have implementation");
478AddTypeValidationError(type, $"Interface method '{interfaceMethod}' overridden by method '{impl}' which does not have matching generic constraints");
498AddTypeValidationError(type, $"Virtual method '{virtualMethod}' overridden by method '{implementationMethod}' which does not have matching generic constraints");
509AddTypeValidationError(type, $"Virtual method '{virtualMethod}' overridden by method '{implementationMethod}' does not satisfy the covariant return type introduced with '{implementationOnBaseType}'");
521AddTypeValidationError(type, $"Interface method '{virtualMethod}' does not have implementation");
541AddTypeValidationError(type, $"due to exception '{ex.ToString()}'");
626AddTypeValidationError(type, $"Constraint check failed validating {instantiatedType}");
634AddTypeValidationError(instantiatedType, $"due to exception '{ex}'");