diff options
author | Marek Safar <marek.safar@gmail.com> | 2008-03-19 13:40:04 +0300 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2008-03-19 13:40:04 +0300 |
commit | 1c8fae07ebaa65df374f4ad61c208dcb6e1f3fb6 (patch) | |
tree | 24bac33b6fd4d860cbbcb0c9f81ee1d7d0f6e9fc /mcs/tests/test-608.cs | |
parent | 32844a97f236ce3fd52a475393c0833d692fe2ce (diff) | |
parent | b251ce784aa16f7c3d52dfc4f334ee7b02f07c50 (diff) |
New tests, renamed verify-*.cs
svn path=/trunk/mcs/; revision=98581
Diffstat (limited to 'mcs/tests/test-608.cs')
-rw-r--r-- | mcs/tests/test-608.cs | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/mcs/tests/test-608.cs b/mcs/tests/test-608.cs new file mode 100644 index 00000000000..c5638962762 --- /dev/null +++ b/mcs/tests/test-608.cs @@ -0,0 +1,28 @@ +using System; + +class X +{ + enum Foo { + A, B + } + + enum Bar { + C, D + } + + public static void Main () + { + Foo foo = Foo.A; + Enum se = (Enum) foo; + Enum sc = (Enum) Foo.A; + object obj1 = (object) foo; + object obj2 = (object) Foo.A; + + Bar bar = (Bar) se; + Foo blah = (Foo) obj1; + + Enum Ea = Foo.A; + + IConvertible iconv = Ea; + } +} |