12 lines
208 B
C#
Raw Permalink Normal View History

// 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;
}
}