[ilasm] Don't break arguments compatiblity
[mono-project.git] / mcs / tests / gtest-628.cs
blobc57e5364bf83303865d1c2263a288e1600a5cb63
1 using System;
2 using System.Threading;
4 class Impl<T> where T : class
6 public static object CompareExchangeImpl (TypedReference tr, object value, object comparand)
8 return Interlocked.CompareExchange (ref __refvalue(tr, T), (T) value, (T) comparand);
12 class X
14 public static void Main ()
16 var obj = "obj";
17 var tr = __makeref (obj);
18 Impl<string>.CompareExchangeImpl (tr, "foo", null);