Merge pull request #4327 from vkargov/vk-abcremedy
[mono.git] / mcs / tests / gtest-134.cs
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";