[interp] Reduce computation under calc_section mutex
[mono-project.git] / mcs / tests / gtest-608.cs
blobd6751655078afbbc018a7a940ebe2b5f88fa3293
1 using System;
3 class R<T, U>
4 where T : System.IDisposable
5 where U : T
7 public void M (U u)
9 using (u) {
14 struct S<T, U>
15 where T : System.IDisposable
16 where U : struct, T
18 public void M (U u)
20 using (u) {
25 class X : IDisposable
27 public void Dispose ()
31 public static void Main ()
33 new R<X, X> ().M (new X ());
34 new S<Y, Y> ().M (new Y ());
38 struct Y : IDisposable
40 public void Dispose ()