[System.Core] SLE from CoreFX including interpreter
[mono.git] / mcs / tests / test-570.cs
1 //Compiler options: -warnaserror -warn:4
2
3 using System;
4 interface IFoo
5 {
6 }
7
8 class Bar
9 {
10 }
11
12 class Program
13 {
14         public static void Main()
15         {
16                 IFoo foo = null;
17                 if (foo is IFoo)
18                         Console.WriteLine("got an IFoo"); // never prints
19                         
20                 Bar bar = null;
21                 if (bar is Bar)
22                         Console.WriteLine("got a bar"); // never prints
23         }
24 }