New test.
[mono.git] / mcs / tests / test-342.cs
1 using System;
2
3 class A {
4         public virtual void Foo (int i) { }
5         
6         public virtual void Foo (double d) {
7                 throw new Exception ("Shouldn't be invoked");
8         }
9 }
10
11 class B : A {
12         public override void Foo (double d) {
13                 throw new Exception ("Overload resolution failed");
14         }
15         
16         public static void Main () {
17                 new B ().Foo (1);
18         }
19 }