Files
mono/mcs/errors/cs0633.cs
T
Marek Safar c056798bb9 2006-03-23 Marek Safar <[email protected]>
* attribute.cs (Attribute.ResolveConstructor): Check for an invalid
	attribute arguments here.

	* class.cs (Indexer.Define): The check was moved to attribute class.

svn path=/trunk/mcs/; revision=58399
2006-03-23 22:27:43 +00:00

19 lines
381 B
C#

// cs0633.cs: The argument to the `System.Runtime.CompilerServices.IndexerNameAttribute' attribute must be a valid identifier
// Line: 5
public class MonthDays {
[System.Runtime.CompilerServices.IndexerName ("buggypo for you")]
public int this [int a] {
get {
return 0;
}
}
public static void Main ()
{
int i = new MonthDays () [1];
}
}