diff options
author | Marek Safar <marek.safar@gmail.com> | 2007-05-16 02:38:45 +0400 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2007-05-16 02:38:45 +0400 |
commit | 2c99a79b250e6c282802179069b90353aaba93b1 (patch) | |
tree | 7b0ddf4b23f578d546e6225d49348ef200b31ab3 /mcs/tests/test-570.cs | |
parent | 7838f7e6e34d39c4e5c4cbb50985bb58d48e2158 (diff) |
New test.
svn path=/trunk/mcs/; revision=77446
Diffstat (limited to 'mcs/tests/test-570.cs')
-rw-r--r-- | mcs/tests/test-570.cs | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/mcs/tests/test-570.cs b/mcs/tests/test-570.cs new file mode 100644 index 00000000000..938abb24a97 --- /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 + } +} |