diff options
author | Martin Baulig <martin@novell.com> | 2002-08-08 22:39:00 +0400 |
---|---|---|
committer | Martin Baulig <martin@novell.com> | 2002-08-08 22:39:00 +0400 |
commit | b30142248e67405f3241ab2ed853dbf8abf62db4 (patch) | |
tree | 5b81c44cc9f24c7fa2146e6b87b446c51623635c /mcs/errors/cs1540.cs | |
parent | 71edd83a6bf0120ef81e398e2e61bf1c490001ee (diff) |
2002-08-08 Martin Baulig <martin@gnome.org>
* cs1540.cs: New test.
svn path=/trunk/mcs/; revision=6545
Diffstat (limited to 'mcs/errors/cs1540.cs')
-rw-r--r-- | mcs/errors/cs1540.cs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/mcs/errors/cs1540.cs b/mcs/errors/cs1540.cs new file mode 100644 index 00000000000..6ba524e4869 --- /dev/null +++ b/mcs/errors/cs1540.cs @@ -0,0 +1,13 @@ +class A +{ + protected int n; +} + +class B : A +{ + public static void Main () + { + A b = new A (); + b.n = 1; + } +} |