repo.or.cz
/
mono-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[corlib] Simplify RuntimeInformation by getting OS name from the runtime (#13164)
[mono-project.git]
/
mcs
/
errors
/
cs0221-14.cs
blob
c855e76b5254bcf8c3303194c513bb98c5f7d998
1
// CS0221: Constant value `-1' cannot be converted to a `ushort' (use `unchecked' syntax to override)
2
// Line: 11
3
4
class
C
5
{
6
delegate void
D
();
7
8
static void
Main
()
9
{
10
D d
=
unchecked
(
delegate
{
11
const ushort
s
= (
ushort
) -
1
;
12
});
13
}
14
}