[interp] Don't check for exception in native wrappers (#14184)
[mono-project.git] / mcs / errors / cs0217-2.cs
blobe8135f7203d88ff71494589a6f3d67337070f8ef
1 // CS0217: A user-defined operator `UserOperatorClass.operator &(UserOperatorClass, bool)' must have each parameter type and return type of the same type in order to be applicable as a short circuit operator
2 // Line: 25
4 public class UserOperatorClass
6 public static UserOperatorClass operator & (UserOperatorClass u1, bool u2)
8 return u1;
11 public static bool operator true (UserOperatorClass u)
13 return true;
16 public static bool operator false (UserOperatorClass u)
18 return false;
21 public static void Main ()
23 UserOperatorClass x = new UserOperatorClass ();
24 bool y = true;
25 UserOperatorClass z = x && y;