Files
mono/mcs/errors/cs0218.cs
T
Raja R Harinath 7fd909f52f svn:eol-style=native
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
2005-03-16 11:28:12 +00:00

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;
}
}