Welcome to mirror list, hosted at ThFree Co, Russian Federation.

test-570.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 938abb24a9726a3ce411044e2dd4462b608aa19b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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
	}
}