mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-18 17:02:10 -10:00
* 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
19 lines
381 B
C#
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];
|
|
}
|
|
}
|
|
|
|
|