projects
/
mono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7838f7e
)
New test.
author
Marek Safar
<marek.safar@gmail.com>
Tue, 15 May 2007 22:38:45 +0000
(22:38 -0000)
committer
Marek Safar
<marek.safar@gmail.com>
Tue, 15 May 2007 22:38:45 +0000
(22:38 -0000)
svn path=/trunk/mcs/; revision=77446
mcs/tests/test-570.cs
[new file with mode: 0644]
patch
|
blob
diff --git a/mcs/tests/test-570.cs
b/mcs/tests/test-570.cs
new file mode 100644
(file)
index 0000000..
938abb2
--- /dev/null
+++ b/
mcs/tests/test-570.cs
@@ -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
+ }
+}