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
2009-11-20 Marek Safar <marek.safar@gmail.com>
[mcs.git]
/
errors
/
cs0221-3.cs
blob
a186ab76bc2eab768cf5debed6e40f6e887d9a68
1
// cs0221-2.cs: Constant value `-9' cannot be converted to a `E' (use `unchecked' syntax to override)
2
// Line: 10
3
4
enum
E
:
byte
{
5
Min
=
9
6
}
7
8
class
T
{
9
static void
Main
() {
10
E error
= (
E
)(-
9
);
11
System
.
Console
.
WriteLine
(
error
);
12
}
13
}