Преглед изворни кода

2006-11-29 Martin Baulig <[email protected]>

	* gtest-134.cs: Fixed.


svn path=/trunk/mcs/; revision=68703
Martin Baulig пре 19 година
родитељ
комит
ba809ee2a2
2 измењених фајлова са 5 додато и 2 уклоњено
  1. 4 0
      mcs/tests/ChangeLog
  2. 1 2
      mcs/tests/gtest-134.cs

+ 4 - 0
mcs/tests/ChangeLog

@@ -1,3 +1,7 @@
+2006-11-29  Martin Baulig  <[email protected]>
+
+	* gtest-134.cs: Fixed.
+
 2006-11-19  Gert Driesen  <[email protected]>
 
 	* test-539.cs, gtest-297.cs: Added tests for bug #79810.

+ 1 - 2
mcs/tests/gtest-134.cs

@@ -32,8 +32,7 @@ class Foo<T> {
   // comparison will be false...
 
   public String Fmt() {
-    if (x is INullableValue && ((INullableValue)x).HasValue
-	|| !(x is INullableValue) && x != null)
+    if (x != null)
       return x.ToString();
     else
       return "null";