diff options
author | Marek Safar <marek.safar@gmail.com> | 2004-04-13 11:16:43 +0400 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2004-04-13 11:16:43 +0400 |
commit | 788ac9afd241090a34ff88a0892037982eec90ca (patch) | |
tree | a0876982a985e552ddc2e08cf7a836eb28feeca0 /mcs/errors/cs0619-29.cs | |
parent | f385bd3f3a032ceb2e5778b7f70fc2da4a819f4e (diff) |
2004-04-13 Marek Safar <marek.safar@seznam.cz>
* cs1618-2.cs,
* cs1619-{27-36}.cs,
* cs1667.cs, cs1667-2.cs: 13 new error tests.
svn path=/trunk/mcs/; revision=25386
Diffstat (limited to 'mcs/errors/cs0619-29.cs')
-rw-r--r-- | mcs/errors/cs0619-29.cs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/mcs/errors/cs0619-29.cs b/mcs/errors/cs0619-29.cs new file mode 100644 index 00000000000..e17a1e9bfaf --- /dev/null +++ b/mcs/errors/cs0619-29.cs @@ -0,0 +1,17 @@ +// cs0619.cs: 'Obsolete.MethodError()' is obsolete: 'Do not use it' +// Line: 15 + +class Obsolete { + [System.Obsolete("Do not use it.", true)] + public static bool Error { + get { + return false; + } + } +} + +class MainClass { + public static void Main () { + System.Console.WriteLine (Obsolete.Error); + } +}
\ No newline at end of file |