[mcs] Don't do constraints on fabricated generic methods. Fixes #47672
[mono.git] / mcs / tests / gtest-variance-19.cs
1 using System;
2 using System.Collections.Generic;
3
4 public class Test
5 {
6         static void Bla<T, U> () where T : class, U
7         {
8                 T[] ta = new T[0];
9                 IEnumerable<T> ita = ta;
10                 IEnumerable<U> itu = ita;
11         }
12
13         public static void Main ()
14         {
15                 Bla<string, object> ();
16         }
17 }