2 // This tests that conversions from Enum and ValueType to structs
3 // are treated as unboxing conversions, and the `unbox' opcode
11 System.Enum e = Foo.Bar;
12 System.ValueType vt1 = Foo.Bar, vt2 = 1;
14 if (((Foo) e) != Foo.Bar)
17 if (((Foo) vt1) != Foo.Bar)
24 // Test that we can assign null to a valueType
27 System.ValueType vt = null;