Take stars out of types where they make more sense.
[mono-project.git] / mcs / tests / test-864.cs
bloba3034709653067ad294f838bf6dbd90c1f4d5162
1 class MainClass
3 static int Foo (double d)
5 return 0;
8 static int Foo (int d)
10 return 100;
13 public static int Main ()
15 decimal a = new A ();
16 long b = new B ();
17 if (b != 7)
18 return 1;
20 if (Foo (new B2 ()) != 100)
21 return 1;
23 return 0;
27 public class A
29 public static implicit operator int (A a)
31 return 6;
35 public class B : A
37 public static implicit operator int (B b)
39 return 7;
43 public class A2
45 public static implicit operator double (A2 a)
47 return 2;
51 public class B2 : A2
53 public static implicit operator int (B2 b)
55 return 3;