Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Safar <marek.safar@gmail.com>2010-11-26 15:26:55 +0300
committerMarek Safar <marek.safar@gmail.com>2010-11-26 19:29:21 +0300
commitb600deb8ac784734a3c885f37a995419df7c91f2 (patch)
treee70c03bfec8014bb1d485b2c77f903ae9ea66efc /mcs/tests/gtest-optional-03-lib.cs
parent34f14e5178e30c1e8d36955da8f26394f2706182 (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.cs10
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; }