Author: marek
Date: 2007-05-15 18:38:45 -0400 (Tue, 15 May 2007)
New Revision: 77446
Added:
trunk/mcs/tests/test-570.cs
Log:
New test.
Added: trunk/mcs/tests/test-570.cs
===================================================================
--- trunk/mcs/tests/test-570.cs 2007-05-15 22:37:41 UTC (rev 77445)
+++ trunk/mcs/tests/test-570.cs 2007-05-15 22:38:45 UTC (rev 77446)
@@ -0,0 +1,24 @@
+//Compiler options: -warnaserror -warn:4
+
+using System;
+interface IFoo
+{
+}
+
+class Bar
+{
+}
+
+class Program
+{
+ public static void Main()
+ {
+ IFoo foo = null;
+ if (foo is IFoo)
+ Console.WriteLine("got an IFoo"); // never prints
+
+ Bar bar = null;
+ if (bar is Bar)
+ Console.WriteLine("got a bar"); // never prints
+ }
+}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches