44 references to AddTypeValidationError
ILCompiler.ReadyToRun (44)
Compiler\DependencyAnalysis\ReadyToRun\TypeValidationChecker.cs (44)
122AddTypeValidationError(type, "BaseType failed validation"); 134AddTypeValidationError(type, $"Interface type {interfaceType} failed validation"); 140AddTypeValidationError(type, $"Runtime interface {interfaceType} is not an interface"); 157AddTypeValidationError(type, $"Field {field.GetName()}'s type failed validation"); 177AddTypeValidationError(type, $"Signature could not be loaded for method {method.GetName()}"); 184AddTypeValidationError(type, $"Is enum type with a method"); 195AddTypeValidationError(type, $"{method} is an abstract method with a non-zero RVA"); 201AddTypeValidationError(type, $"{method} is an miRuntime method with a non-zero RVA"); 207AddTypeValidationError(type, $"{method} is an internal call method with a non-zero RVA"); 214AddTypeValidationError(type, $"abstract method {method} defined on non-abstract type"); 222AddTypeValidationError(type, $"instance abstract method {method} not marked as virtual"); 233AddTypeValidationError(type, $"Special name method {method} defined on interface"); 243AddTypeValidationError(type, $"'{method}' is both virtual and a p/invoke"); 249AddTypeValidationError(type, $"'{method}' is a virtual static method not defined on an interface"); 255AddTypeValidationError(type, $"'{method}' is a virtual constructor"); 264AddTypeValidationError(type, $"'{method}' is synchronized method on a value type"); 271AddTypeValidationError(type, $"'{method}' is an instance method defined on the global <module> type"); 280AddTypeValidationError(type, $"'{method}' is an pinvoke defined on a generic type"); 285AddTypeValidationError(type, $"'{method}' is an pinvoke defined as a generic method"); 294AddTypeValidationError(type, $"'{method}' is an internal call generic method"); 299AddTypeValidationError(type, $"'{method}' is an internal call method on generic type"); 306AddTypeValidationError(type, $"'{method}' is an runtime-impl generic method"); 316AddTypeValidationError(type, $"'{method}' has invalid variance in signature"); 327AddTypeValidationError(type, $"'{method}' has invalid variance in generic parameter constraint {constraint} on type {genericParameterType}"); 335AddTypeValidationError(type, $"'{method}' has cyclical generic parameter constraints"); 350AddTypeValidationError(type, $"'{genericParameterType}' has invalid variance in generic parameter constraint {constraint}"); 366AddTypeValidationError(type, $"'{type}' has invalid variance in in interface impl of {interfaceType}"); 376AddTypeValidationError(type, $"'{type}' has cyclical generic parameter constraints"); 394AddTypeValidationError(type, $"MethodImpl with Body '{methodBody}' and Decl '{methodDecl}' do not have matching signatures"); 400AddTypeValidationError(type, $"MethodImpl with Decl '{methodDecl}' points at non-virtual decl method"); 406AddTypeValidationError(type, $"MethodImpl with Decl '{methodDecl}' points at sealed decl method"); 413AddTypeValidationError(type, $"MethodImpl with Body '{methodBody}' and Decl '{methodDecl}' implements interface on another interface with a non-sealed method"); 419AddTypeValidationError(type, $"MethodImpl with Body '{methodBody}' and Decl '{methodDecl}' implements a static virtual method with a virtual static method"); 425AddTypeValidationError(type, $"MethodImpl with Body '{methodBody}' and Decl '{methodDecl}' implements a instance virtual method with a non-virtual instance method"); 432AddTypeValidationError(type, $"Multiple MethodImpl records override '{methodDecl}'"); 466AddTypeValidationError(type, $"Interface method '{interfaceMethod}' overridden by method '{resolvedMethod}' which does not have matching generic constraints"); 479AddTypeValidationError(type, $"Interface method '{interfaceMethod}' does not have implementation"); 488AddTypeValidationError(type, $"Interface method '{interfaceMethod}' overridden by method '{impl}' which does not have matching generic constraints"); 508AddTypeValidationError(type, $"Virtual method '{virtualMethod}' overridden by method '{implementationMethod}' which does not have matching generic constraints"); 519AddTypeValidationError(type, $"Virtual method '{virtualMethod}' overridden by method '{implementationMethod}' does not satisfy the covariant return type introduced with '{implementationOnBaseType}'"); 531AddTypeValidationError(type, $"Interface method '{virtualMethod}' does not have implementation"); 551AddTypeValidationError(type, $"due to exception '{ex.ToString()}'"); 636AddTypeValidationError(type, $"Constraint check failed validating {instantiatedType}"); 644AddTypeValidationError(instantiatedType, $"due to exception '{ex}'");