Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cs0182.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 0fbb80f7cfc16509f4522fa7289872eb6c25bf2c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// 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 (object t)
	{
	}
}


[Mine(new Type [2,2])]
public class Foo {	
	public static int Main ()
	{
		return 0;
	}
}