diff options
author | Miguel de Icaza <miguel@gnome.org> | 2001-12-19 20:51:33 +0300 |
---|---|---|
committer | Miguel de Icaza <miguel@gnome.org> | 2001-12-19 20:51:33 +0300 |
commit | 1c448ef397c36b79e20054a015bd79a4749fb3df (patch) | |
tree | 9900bc9332ae2ad4ce7e2a444f9b8f8319598eba /mcs/tests/test-61.cs | |
parent | 25642c7ef3a0f7e87db5f81deceb4444662fb554 (diff) |
Add parsing test
svn path=/trunk/mcs/; revision=1644
Diffstat (limited to 'mcs/tests/test-61.cs')
-rwxr-xr-x | mcs/tests/test-61.cs | 31 |
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; + } +} + |