mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-18 17:02:10 -10:00
* class.cs (Operator::CheckUnaryOperator): Correct error number used to make it coincide with MS' number. (Operator::CheckBinaryOperator): Ditto. * ../errors/errors.txt : Remove error numbers added earlier. * ../errors/cs1019.cs : Test case for error # 1019 * ../errros/cs1020.cs : Test case for error # 1020 * cs-parser.jay : Clean out commented cruft. (dimension_separators, dimension_separator): Comment out. Ostensibly not used anywhere - non-reducing rule. (namespace_declarations): Non-reducing rule - comment out. * enum.cs (Enum::AddEnum): Rename to AddEnumMember as I was getting confused with TypeContainer::AddEnum. * delegate.cs : New file for delegate handling classes. (Delegate): Class for declaring delegates. * makefile : Update. * cs-parser.jay (delegate_declaration): Implement. svn path=/trunk/mcs/; revision=696
29 lines
338 B
C#
29 lines
338 B
C#
// cs1020.cs : Overloadable binary operator expected
|
|
// Line : 19
|
|
|
|
|
|
public class MyClass {
|
|
|
|
public int this[int ndx]
|
|
{
|
|
get { }
|
|
set { }
|
|
}
|
|
|
|
public event EventHandler Click
|
|
{
|
|
add { }
|
|
remove { }
|
|
}
|
|
|
|
public static MyClass operator++ (MyClass i, MyClass j)
|
|
{
|
|
|
|
}
|
|
|
|
public static implicit operator MyClass (Object o)
|
|
{
|
|
|
|
}
|
|
}
|