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

using System;

class X
{
	void Foo ()
	{
		int? i = null;
		
		if (i is bool?) {
		}
	}
}