summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0266-23.cs
blob: f10be25a49619471aa316d9cb8f3ff13cc680a13 (plain)
1
2
3
4
5
6
7
8
9
10
11
// CS0266: Cannot implicitly convert type `object' to `bool'. An explicit conversion exists (are you missing a cast?)
// Line: 9

class X
{
	static void Main ()
	{
		object o = true;
		bool b = (o ?? string.Empty);
	}
}