[runtime] Don't insta-fail when a faulty COM type is encountered. (#5616)
[mono.git] / mcs / tests / gtest-040.cs
index bcaeef3d0c901ce2108bd5f5cc2e25863ec438d5..06e74297db27b3e976c1ed5d0a2b3a4104048b6e 100644 (file)
@@ -105,13 +105,31 @@ public class Stack<T>
        }
 }
 
+class A<U>
+{
+       public class Test<T>
+       {
+               public static Nested<T> Foo ()
+               {
+                       return null;
+               }
+               
+               public class Nested<X>
+               {
+               }
+       }
+}
+
 class X
 {
-       static void Main ()
+       public static int Main ()
        {
                Stack<int> stack = new Stack<int> (1);
                INode<int> node = stack.GetNode ();
                Stack<int>.Foo<int> foo = stack.GetFoo (7);
                Stack<int>.Bar<int> bar = stack.GetBar (8);
+
+               A<bool>.Test<string>.Nested<string> v = A<bool>.Test<string>.Foo ();
+               return 0;
        }
 }