[runtime] Don't insta-fail when a faulty COM type is encountered. (#5616)
[mono.git] / mcs / tests / test-anon-125.cs
1 using System;
2 using System.Collections.Generic;
3
4 class HS<T>
5 {
6         public HS (IEqualityComparer<T> comparer)
7         {
8         }
9 }
10
11 class Test
12 {
13         static void Foo<T> (IEqualityComparer<T> c)
14         {
15                 Func<HS<T>> a = () => {
16                         return new HS<T> (c);
17                 };
18         }
19         
20         public static int Main ()
21         {
22                 Foo<object> (null);
23                 return 0;
24         }
25 }