[metadata] Fix leaks when handling a few attributes (#16675)
[mono-project.git] / mcs / tests / gtest-600.cs
blob54b6c29244a06a753fe4ed1ef4a62b16ee41bf23
1 class A { }
2 class B { }
4 interface ICharlie<T> { }
6 class Delta : ICharlie<A>, ICharlie<B>
8 static void Test<U> (ICharlie<U> icu, U u)
12 public void World<U> (U u, IFoo<U> foo)
16 public void Test (Foo foo)
18 World ("Canada", foo);
21 static void Main ()
23 Test (new Delta (), new A ());
24 Test (new Delta (), new B ());
28 public interface IFoo<T>
32 public class Foo : IFoo<int>, IFoo<string>