diff options
author | Alp Toker <alp@mono-cvs.ximian.com> | 2007-03-13 08:46:50 +0300 |
---|---|---|
committer | Alp Toker <alp@mono-cvs.ximian.com> | 2007-03-13 08:46:50 +0300 |
commit | 054bd0f07d657902234706f9a84cbb858c39f433 (patch) | |
tree | f21fe7892c929846a2219c16fa1224ce2ebe8c91 /mcs/tests/test-567.cs | |
parent | 69a9d04cabcddc9eabda99761c14c2e98c5bb1de (diff) |
2007-03-13 Alp Toker <alp@atoker.com>
* test-567.cs: New test based on #63841.
svn path=/trunk/mcs/; revision=74157
Diffstat (limited to 'mcs/tests/test-567.cs')
-rw-r--r-- | mcs/tests/test-567.cs | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/mcs/tests/test-567.cs b/mcs/tests/test-567.cs new file mode 100644 index 00000000000..5a5c0364cc9 --- /dev/null +++ b/mcs/tests/test-567.cs @@ -0,0 +1,26 @@ +// Test for bug 63841 -- GetElementType() returns underlying enum type +// instead of null + +using System; + +class Test +{ + static void Main () + { + Type a = typeof (A).GetElementType (); + if (a != null) + Console.WriteLine ("ERROR a != null"); + + Type b = typeof (B).GetElementType (); + if (b != null) + Console.WriteLine ("ERROR b != null"); + + Type c = typeof (C).GetElementType (); + if (c != null) + Console.WriteLine ("ERROR c != null"); + } + + enum A { } + enum B : byte { } + enum C : byte { X, Y, Z } +} |