repo.or.cz
/
mcs.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2010-01-03 Zoltan Varga <vargaz@gmail.com>
[mcs.git]
/
errors
/
cs0221-11.cs
blob
48ecc1aae144db6bce089fc8dfbed50099c36e7f
1
// CS0221: Constant value `-1' cannot be converted to a `char' (use `unchecked' syntax to override)
2
// Line: 10
3
4
class
C
5
{
6
static void
Main
()
7
{
8
unchecked
{
9
checked
{
10
const char
c
= (
char
) -
1
;
11
}
12
}
13
}
14
}