diff options
author | Marek Safar <marek.safar@gmail.com> | 2009-06-11 21:01:21 +0400 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2009-06-11 21:01:21 +0400 |
commit | 7755c3d7d726d5d85a79763a15f7cc998956ac14 (patch) | |
tree | 18f817970b471527256bc312dd335abaf8c7a8ca /mcs/errors/cs1065.cs | |
parent | 31483560fe2b121db2133fdb2feddbdde44a9057 (diff) | |
parent | c39fe32eb808d0385e41749f85187791efb61b1f (diff) |
New tests.
svn path=/trunk/mcs/; revision=135938
Diffstat (limited to 'mcs/errors/cs1065.cs')
-rw-r--r-- | mcs/errors/cs1065.cs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/mcs/errors/cs1065.cs b/mcs/errors/cs1065.cs new file mode 100644 index 00000000000..68f9cd260ee --- /dev/null +++ b/mcs/errors/cs1065.cs @@ -0,0 +1,12 @@ +// CS1065: Optional parameter is not valid in this context +// Line: 10 + +delegate void D (int i); + +public class C +{ + public static void Main () + { + D d = delegate (int i = 9) { }; + } +} |