diff options
author | Ben Maurer <benm@mono-cvs.ximian.com> | 2004-03-25 20:29:52 +0300 |
---|---|---|
committer | Ben Maurer <benm@mono-cvs.ximian.com> | 2004-03-25 20:29:52 +0300 |
commit | 951cd331b8095b2a442433a9e17b4a0fd294d5a4 (patch) | |
tree | 1d202b4f056b8e9b3346cd4115eeb978dcd7a091 /mcs/errors/cs0154-2.cs | |
parent | 7cbe0d48464cb68148e70b377910a1c1bc029460 (diff) |
2004-03-25 Ben Maurer <bmaurer@users.sourceforge.net>
* cs1510-2.cs: test for 56016.
* cs0154-2.cs: test for 55780.
* cs0246-6.cs: test for 55770.
svn path=/trunk/mcs/; revision=24597
Diffstat (limited to 'mcs/errors/cs0154-2.cs')
-rw-r--r-- | mcs/errors/cs0154-2.cs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/mcs/errors/cs0154-2.cs b/mcs/errors/cs0154-2.cs new file mode 100644 index 00000000000..16ef004c2d1 --- /dev/null +++ b/mcs/errors/cs0154-2.cs @@ -0,0 +1,15 @@ +// cs0154-2.cs: error CS0154: The property or indexer 'B.Foo' cannot be used in this context because it lacks the get accessor +// Line: 13 +// this is bug 55780. + +class A { + public int Foo { get { return 1; } } +} + +class B : A { + public new int Foo { set { } } + static void Main () + { + System.Console.WriteLine (new B ().Foo); + } +}
\ No newline at end of file |