Mono.CSharp.TypeContainer.UpdateTypeParameterConstraints C# (CSharp) Method

UpdateTypeParameterConstraints() public method

public UpdateTypeParameterConstraints ( TypeContainer part ) : void
part TypeContainer
return void
		void UpdateTypeParameterConstraints (TypeContainer part)
		{
			TypeParameter[] current_params = type_params;
			for (int i = 0; i < current_params.Length; i++) {
				if (current_params [i].AddPartialConstraints (part, part.type_params [i]))
					continue;

				Report.SymbolRelatedToPreviousError (Location, "");
				Report.Error (265, part.Location,
					"Partial declarations of `{0}' have inconsistent constraints for type parameter `{1}'",
					GetSignatureForError (), current_params [i].GetSignatureForError ());
			}
		}