diff options
author | Marek Safar <marek.safar@gmail.com> | 2012-11-18 22:40:04 +0400 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2012-11-18 22:41:12 +0400 |
commit | 8cd773d85755b397c43e6e6a3d536bb07f036f59 (patch) | |
tree | b091261953b7602701002d90c098d7e42f6feeca /mcs/tests/test-859.cs | |
parent | 5f57c9c3a0bf2a4ba2a0b68dc7d90dfa993493bd (diff) |
Implement support for imported properties with parameters. Fixes #8398
Diffstat (limited to 'mcs/tests/test-859.cs')
-rw-r--r-- | mcs/tests/test-859.cs | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/mcs/tests/test-859.cs b/mcs/tests/test-859.cs new file mode 100644 index 00000000000..1737b9c7b18 --- /dev/null +++ b/mcs/tests/test-859.cs @@ -0,0 +1,24 @@ +// Compiler options: -r:test-859-lib.dll + +using System; + +class X +{ + void Test_PropertyOptionalParameters (C c) + { + // need to just run verifier on the method + if (c == null) + return; + + Console.WriteLine (c.Value); + c.Value2 = 1; + } + + static int Main () + { + var x = new X (); + x.Test_PropertyOptionalParameters (null); + + return 0; + } +} |