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-30.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-30.cs')
-rw-r--r-- | mcs/errors/cs0619-30.cs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/mcs/errors/cs0619-30.cs b/mcs/errors/cs0619-30.cs new file mode 100644 index 00000000000..e85f412faac --- /dev/null +++ b/mcs/errors/cs0619-30.cs @@ -0,0 +1,18 @@ +// cs0619.cs: 'ObsoleteEnum.value_B' is obsolete: 'Is obsolete' +// Line: 16 + +using System; + +enum ObsoleteEnum +{ + value_A, + [Obsolete("Is obsolete", true)] + value_B +} + +class MainClass { + public static void Main () + { + Console.WriteLine (ObsoleteEnum.value_B); + } +}
\ No newline at end of file |