mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-18 17:02:10 -10:00
Bit the bullet and set it on all files. It's too much of a pain trying to avoid history changes on 20-or-so files each time I have to set this property. svn path=/trunk/mcs/; revision=41887
27 lines
777 B
C#
27 lines
777 B
C#
// cs0218.cs: The type ('UserOperatorClass') must contain declarations of operator true and operator false
|
|
// Line: 22
|
|
|
|
public class UserOperatorClass
|
|
{
|
|
public static UserOperatorClass operator & (UserOperatorClass u1, UserOperatorClass u2) {
|
|
return new UserOperatorClass();
|
|
}
|
|
|
|
// public static bool operator true (UserOperatorClass u) {
|
|
// return true;
|
|
// }
|
|
|
|
// public static bool operator false (UserOperatorClass u) {
|
|
// return false;
|
|
// }
|
|
|
|
public static void Main() {
|
|
|
|
UserOperatorClass x = new UserOperatorClass();
|
|
UserOperatorClass y = new UserOperatorClass();
|
|
UserOperatorClass z = x && y;
|
|
}
|
|
}
|
|
|
|
|