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

class X
{
	static void Main ()
	{
		bool? a = true;
		int? b = a ? 3 : 4;
	}
}