diff options
author | Marek Safar <marek.safar@gmail.com> | 2010-11-26 15:26:55 +0300 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2010-11-26 19:29:21 +0300 |
commit | b600deb8ac784734a3c885f37a995419df7c91f2 (patch) | |
tree | e70c03bfec8014bb1d485b2c77f903ae9ea66efc /mcs/tests/gtest-optional-03-lib.cs | |
parent | 34f14e5178e30c1e8d36955da8f26394f2706182 (diff) |
Import constants using their raw values only
Diffstat (limited to 'mcs/tests/gtest-optional-03-lib.cs')
-rw-r--r-- | mcs/tests/gtest-optional-03-lib.cs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/mcs/tests/gtest-optional-03-lib.cs b/mcs/tests/gtest-optional-03-lib.cs index f801dfdc529..d7d9f3c70e4 100644 --- a/mcs/tests/gtest-optional-03-lib.cs +++ b/mcs/tests/gtest-optional-03-lib.cs @@ -4,6 +4,11 @@ public struct S { } +public enum E +{ + Value = 3 +} + public class B { public static string TestString (string s = "mono") @@ -31,6 +36,11 @@ public class B return d; } + public static E TestEnum (E e = E.Value) + { + return e; + } + char ch; public char this [int id, char v = 'h'] { get { return v; } |