2006-11-29 Martin Baulig <martin@ximian.com>
authorMartin Baulig <martin@novell.com>
Wed, 29 Nov 2006 22:09:57 +0000 (22:09 -0000)
committerMartin Baulig <martin@novell.com>
Wed, 29 Nov 2006 22:09:57 +0000 (22:09 -0000)
* gtest-134.cs: Fixed.

svn path=/trunk/mcs/; revision=68703

mcs/tests/ChangeLog
mcs/tests/gtest-134.cs

index 7161f58d4fc7837af23aaaf7e5782efb71b1486e..ea6a8e61e6ed08d1b1a7087ac61f7faf690ed098 100644 (file)
@@ -1,3 +1,7 @@
+2006-11-29  Martin Baulig  <martin@ximian.com>
+
+       * gtest-134.cs: Fixed.
+
 2006-11-19  Gert Driesen  <drieseng@users.sourceforge.net>
 
        * test-539.cs, gtest-297.cs: Added tests for bug #79810.
index ff49809f27159b7d82190d9a7bf1a625985e9285..df5709472c92c72cd026e4f99614c241242976e0 100644 (file)
@@ -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";