diff options
author | Marek Safar <marek.safar@gmail.com> | 2009-06-16 23:27:35 +0400 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2009-06-16 23:27:35 +0400 |
commit | 58a9543935eb8a50f0d20addf3462bc97294f923 (patch) | |
tree | 0eced5fb0be422a2285f2f75ffe989f4df08998f /mcs/errors | |
parent | 4d3ef7ffae10b2b1a1bc2678a5682fefbfa79850 (diff) |
New test.
svn path=/trunk/mcs/; revision=136244
Diffstat (limited to 'mcs/errors')
-rw-r--r-- | mcs/errors/cs0122-30.cs | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/mcs/errors/cs0122-30.cs b/mcs/errors/cs0122-30.cs new file mode 100644 index 00000000000..aa461653646 --- /dev/null +++ b/mcs/errors/cs0122-30.cs @@ -0,0 +1,21 @@ +// CS0122: `MainClass.Nested.Delegate()' is inaccessible due to its protection level +// Line: 18 + +delegate int TestDelegate (); + +public class MainClass +{ + class Nested + { + static int Delegate () + { + return 0; + } + } + + public static void Main () + { + TestDelegate delegateInstance = new TestDelegate (Nested.Delegate); + } +} + |