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/cs1667.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/cs1667.cs')
-rw-r--r-- | mcs/errors/cs1667.cs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/mcs/errors/cs1667.cs b/mcs/errors/cs1667.cs new file mode 100644 index 00000000000..477ec9cd02a --- /dev/null +++ b/mcs/errors/cs1667.cs @@ -0,0 +1,16 @@ +// cs1667.cs: 'System.CLSCompliant' is not valid on property or event accessors. It is valid on 'assembly, module, class, struct, enum, constructor, method, property, indexer, field, event, interface, param, delegate, return, type parameter' declarations only. +// Line: 14 + +class Test { + public static bool Error { + [System.CLSCompliant (true)] get { + return false; + } + } +} + +class MainClass { + public static void Main () { + System.Console.WriteLine (Test.Error); + } +}
\ No newline at end of file |