diff options
author | Martin Baulig <martin@novell.com> | 2003-07-21 22:59:11 +0400 |
---|---|---|
committer | Martin Baulig <martin@novell.com> | 2003-07-21 22:59:11 +0400 |
commit | 115d545a9f1b332a2b611e678565f62d1a0aefa8 (patch) | |
tree | c97f20a4af6f00ebc14544a0ab89a394a034d95a /mcs/errors/cs0050-2.cs | |
parent | af103a9e04d9d3e77a487dde5baf1a555775f2c6 (diff) |
2003-07-21 Martin Baulig <martin@ximian.com>
* syntax0068.cs, syntax0069.cs, syntax0071.cs, syntax0116.cs:
These are syntax errors which we'd need to catch in cs-parser.jay;
separate them from the other errors.
* cs0572.cs: New test.
svn path=/trunk/mcs/; revision=16497
Diffstat (limited to 'mcs/errors/cs0050-2.cs')
-rw-r--r-- | mcs/errors/cs0050-2.cs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/mcs/errors/cs0050-2.cs b/mcs/errors/cs0050-2.cs new file mode 100644 index 00000000000..08d5c821486 --- /dev/null +++ b/mcs/errors/cs0050-2.cs @@ -0,0 +1,15 @@ +// cs0052.cs: Accessibility levels inconsistent. Method type is less accessible than method. +// Line: 10 + +using System; + +class ErrorCS0052 { +} + +public class Foo { + public ErrorCS0052 Method () { + Console.WriteLine ("The compile should advice the return type of this method is less accessible than the method."); + } + public static void Main () {} +} + |