diff options
author | Jaime Anguiano Olarra <jaime@mono-cvs.ximian.com> | 2002-12-01 21:43:34 +0300 |
---|---|---|
committer | Jaime Anguiano Olarra <jaime@mono-cvs.ximian.com> | 2002-12-01 21:43:34 +0300 |
commit | 463d02f06e3d8ee41dfc3dd0548f2b59876b9016 (patch) | |
tree | dbfc7f1ceacfd5c4a0a9814bd44f5753f0746915 /mcs/errors/cs0053.cs | |
parent | 6077aeb835d271a4138c5e7a7d6b993757dac370 (diff) |
Test for C# Compiler Error CS0053. Property return type less accessible than property.
svn path=/trunk/mcs/; revision=9318
Diffstat (limited to 'mcs/errors/cs0053.cs')
-rw-r--r-- | mcs/errors/cs0053.cs | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/mcs/errors/cs0053.cs b/mcs/errors/cs0053.cs new file mode 100644 index 00000000000..6a719af89df --- /dev/null +++ b/mcs/errors/cs0053.cs @@ -0,0 +1,19 @@ +// cs0053.cs: Inconsistent accessibility. Property type is less accessible than property. +// Line: 10 + +using System; + +class ErrorCS0053 { +} + +class Foo { + public ErrorCS0053 Property { + get { return new ErrorCS0053 (); } + } + + public static void Main () { + } + + ErrorCS0053 error; +} + |