Kaynağa Gözat

2004-08-27 Martin Baulig <[email protected]>

	* class.cs
	(TC.OperatorArrayList.OperatorEntry.CheckPairedOperators): Don't
	crash here.

svn path=/trunk/mcs/; revision=32931
Martin Baulig 21 yıl önce
ebeveyn
işleme
086c98e5ea
2 değiştirilmiş dosya ile 7 ekleme ve 1 silme
  1. 6 0
      mcs/mcs/ChangeLog
  2. 1 1
      mcs/mcs/class.cs

+ 6 - 0
mcs/mcs/ChangeLog

@@ -1,3 +1,9 @@
+2004-08-27  Martin Baulig  <[email protected]>
+
+	* class.cs
+	(TC.OperatorArrayList.OperatorEntry.CheckPairedOperators): Don't
+	crash here.	
+
 2004-08-26  Marek Safar  <[email protected]>
 
 	* ecore.cs (Constantify): Get underlying type via

+ 1 - 1
mcs/mcs/class.cs

@@ -349,7 +349,7 @@ namespace Mono.CSharp {
 							"The operator `" + oe.op + "' requires a matching operator `" + s + "' to also be defined");
 				}
 
- 				if (has_equality_or_inequality && container.Methods == null && (RootContext.WarningLevel > 2)) {
+ 				if (has_equality_or_inequality && container.Methods != null && (RootContext.WarningLevel > 2)) {
  					if (!container.Methods.HasEquals)
  						Report.Warning (660, container.Location, "'{0}' defines operator == or operator != but does not override Object.Equals(object o)", container.GetSignatureForError ());