Take stars out of types where they make more sense.
[mono-project.git] / mcs / tests / test-871.cs
blob19ebf8a05f645de44bc15c37a07fe874bfb867b2
1 using System;
3 class D
5 int arg;
7 public D (int arg)
9 this.arg = arg;
12 public static D operator & (D x, D y)
14 return new D (100);
17 public static bool operator false (D d)
19 return false;
22 public static bool operator true (D d)
24 return true;
27 public static implicit operator D(bool b)
29 return new D (5);
32 static int Main ()
34 D d = false && new D (1);
35 Console.WriteLine (d.arg);
36 if (d.arg != 100)
37 return 1;
39 Console.WriteLine ("ok");
40 return 0;