summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0182-3.cs
blob: 80451ac24cb5de3275db62f076649a7e58797a95 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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;
	}
}