[runtime] Don't insta-fail when a faulty COM type is encountered. (#5616)
[mono.git] / mcs / tests / test-788.cs
1 using System;
2
3 class Program
4 {
5         public static int Main ()
6         {
7                 B b = new B ();
8                 if (b.Message != "OK")
9                         return 1;
10                 return 0;
11         }
12 }
13
14 class A
15 {
16         public virtual string Message
17         {
18                 get
19                 {
20                         return "OK";
21                 }
22         }
23 }
24
25 class B : A
26 {
27         new string Message
28         {
29                 get
30                 {
31                         throw new Exception ();
32                 }
33         }
34 }
35