diff options
author | Martin Baulig <martin@novell.com> | 2004-12-06 22:22:23 +0300 |
---|---|---|
committer | Martin Baulig <martin@novell.com> | 2004-12-06 22:22:23 +0300 |
commit | bd5fd749fed0bb785519c0aa4ac0a2c7d36757f5 (patch) | |
tree | 7b5f27a1c0ad26ed29852bbfe89d221f14966781 /mcs/errors/cs0182-3.cs | |
parent | 4fd7a6f750a7ee82434769365679e3c62aa60c5b (diff) | |
parent | 575ddc9e17b505fcd9fd3fc4fc9aec446d997fa9 (diff) |
2004-12-06 Martin Baulig <martin@ximian.com>
* cs8212.cs: Renamed to cs0182-3.cs.
svn path=/trunk/mcs/; revision=37219
Diffstat (limited to 'mcs/errors/cs0182-3.cs')
-rw-r--r-- | mcs/errors/cs0182-3.cs | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/mcs/errors/cs0182-3.cs b/mcs/errors/cs0182-3.cs new file mode 100644 index 00000000000..80451ac24cb --- /dev/null +++ b/mcs/errors/cs0182-3.cs @@ -0,0 +1,26 @@ +// CS0182: An attribute argument must be a constant expression, typeof expression or array creation expression +// Line: 14 +using System; +using System.Reflection; + +[AttributeUsage (AttributeTargets.All)] +public class MineAttribute : Attribute { + public MineAttribute (Type [] t) + { + } +} + + +[Mine(new Type [2])] +public class Foo { + public static int Main () + { + return 0; + } +} + + + + + + |