blob: f9bf02d82b0a18df30d1dd9f137fae23356a51bf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// CS0221: Constant value `-3' cannot be converted to a `ushort' (use `unchecked' syntax to override)
// Line: 12
class C
{
delegate void D ();
static void Main ()
{
D d = checked (delegate {
const ushort s = (ushort) -3;
});
}
}
|