summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0184-6.cs
blob: bfb7781978d34498fa6daa236e33d70ec5443feb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// CS0184: The given expression is never of the provided (`Y') type
// Line: 10
// Compiler options: -warnaserror -warn:1

class Y
{
}

class X
{
	public void Foo ()
	{
		X x = null;
		if (x is Y) {
		}
	}
}