Compiler\DependencyAnalysis\ReadyToRun\TypeValidationChecker.cs (44)
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");
351AddTypeValidationError(type, $"'{genericParameterType}' has invalid variance in generic parameter constraint {constraint}");
367AddTypeValidationError(type, $"'{type}' has invalid variance in in interface impl of {interfaceType}");
377AddTypeValidationError(type, $"'{type}' has cyclical generic parameter constraints");
395AddTypeValidationError(type, $"MethodImpl with Body '{methodBody}' and Decl '{methodDecl}' do not have matching signatures");
401AddTypeValidationError(type, $"MethodImpl with Decl '{methodDecl}' points at non-virtual decl method");
407AddTypeValidationError(type, $"MethodImpl with Decl '{methodDecl}' points at sealed decl method");
414AddTypeValidationError(type, $"MethodImpl with Body '{methodBody}' and Decl '{methodDecl}' implements interface on another interface with a non-sealed method");
420AddTypeValidationError(type, $"MethodImpl with Body '{methodBody}' and Decl '{methodDecl}' implements a static virtual method with a virtual static method");
426AddTypeValidationError(type, $"MethodImpl with Body '{methodBody}' and Decl '{methodDecl}' implements a instance virtual method with a non-virtual instance method");
433AddTypeValidationError(type, $"Multiple MethodImpl records override '{methodDecl}'");
467AddTypeValidationError(type, $"Interface method '{interfaceMethod}' overridden by method '{resolvedMethod}' which does not have matching generic constraints");
480AddTypeValidationError(type, $"Interface method '{interfaceMethod}' does not have implementation");
489AddTypeValidationError(type, $"Interface method '{interfaceMethod}' overridden by method '{impl}' which does not have matching generic constraints");
509AddTypeValidationError(type, $"Virtual method '{virtualMethod}' overridden by method '{implementationMethod}' which does not have matching generic constraints");
520AddTypeValidationError(type, $"Virtual method '{virtualMethod}' overridden by method '{implementationMethod}' does not satisfy the covariant return type introduced with '{implementationOnBaseType}'");
532AddTypeValidationError(type, $"Interface method '{virtualMethod}' does not have implementation");
552AddTypeValidationError(type, $"due to exception '{ex.ToString()}'");
637AddTypeValidationError(type, $"Constraint check failed validating {instantiatedType}");
645AddTypeValidationError(instantiatedType, $"due to exception '{ex}'");