diff options
author | Marek Safar <marek.safar@gmail.com> | 2004-03-29 20:46:08 +0400 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2004-03-29 20:46:08 +0400 |
commit | ce6dfca587f29e770f3b3a13903f6de81fc26529 (patch) | |
tree | bb66b8de28dba6ec5d13ceddf781af2be030d21a /mcs/errors/cs0619-14.cs | |
parent | 4c611013876fb718d58df7bf64f230953eec3646 (diff) |
2004-03-29 Marek Safar <marek.safar@seznam.cz>
* cs0029-3.cs,
cs0173-2.cs,
cs0619-{2-26}.cs,
cs0672.cs: 29 new error tests.
svn path=/trunk/mcs/; revision=24715
Diffstat (limited to 'mcs/errors/cs0619-14.cs')
-rw-r--r-- | mcs/errors/cs0619-14.cs | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/mcs/errors/cs0619-14.cs b/mcs/errors/cs0619-14.cs new file mode 100644 index 00000000000..5bd99e17979 --- /dev/null +++ b/mcs/errors/cs0619-14.cs @@ -0,0 +1,19 @@ +// cs0619.cs: 'AA' is obsolete: '' +// Line: 17 + +class A +{ +} + +[System.Obsolete ("", true)] +class AA: A +{ + public void Foo () {} +} + +class B { + public B (A a) + { + (a as AA).Foo (); + } +}
\ No newline at end of file |