3
Answers

Literally nothing wrong with the compiler here...

Should this code compile? Does it? What does it mean?

using System;

class Test
{
enum Foo { Bar, Baz };

static void Main()
{
Foo f = 0.0;
Console.WriteLine(f);
}

Answers (3)