projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
2005-07-24 Atsushi Enomoto <atsushi@ximian.com>
[mono.git]
/
mcs
/
tests
/
verify-6.cs
1
using System;
2
3
class X
4
{
5
enum Foo {
6
A, B
7
}
8
9
enum Bar {
10
C, D
11
}
12
13
public static void Main ()
14
{
15
Foo foo = Foo.A;
16
Enum se = (Enum) foo;
17
Enum sc = (Enum) Foo.A;
18
object obj1 = (object) foo;
19
object obj2 = (object) Foo.A;
20
21
Bar bar = (Bar) se;
22
Foo blah = (Foo) obj1;
23
24
Enum Ea = Foo.A;
25
26
IConvertible iconv = Ea;
27
}
28
}