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:
authorMiguel de Icaza <miguel@gnome.org>2001-12-19 20:51:33 +0300
committerMiguel de Icaza <miguel@gnome.org>2001-12-19 20:51:33 +0300
commit1c448ef397c36b79e20054a015bd79a4749fb3df (patch)
tree9900bc9332ae2ad4ce7e2a444f9b8f8319598eba /mcs/tests/test-61.cs
parent25642c7ef3a0f7e87db5f81deceb4444662fb554 (diff)
Add parsing test
svn path=/trunk/mcs/; revision=1644
Diffstat (limited to 'mcs/tests/test-61.cs')
-rwxr-xr-xmcs/tests/test-61.cs31
1 files changed, 31 insertions, 0 deletions
diff --git a/mcs/tests/test-61.cs b/mcs/tests/test-61.cs
new file mode 100755
index 00000000000..dbc008dc820
--- /dev/null
+++ b/mcs/tests/test-61.cs
@@ -0,0 +1,31 @@
+//
+// This tests checks that we allow the `get' and `set' keywords inside
+// the get and set blocks. It does the same for Events special remove
+// and add keywords.
+//
+class X {
+ int Property {
+ get {
+ int get;
+ get = 1;
+ return get;
+ }
+ set {
+ int set;
+ set = value;
+ }
+ }
+
+ public delegate void MyEvent ();
+
+ public event MyEvent XX {
+ add { int add = 1; }
+ remove { int remove = 1; }
+ }
+
+ static int Main ()
+ {
+ return 0;
+ }
+}
+