Bugzilla – Bug 319624
[GMCS] gmcs ignores T: class constraint on method type parameter
Last modified: 2007-09-15 21:24:23 UTC
---- Reported by vargaz@gmail.com 2005-11-23 17:47:24 MST ---- Testcase: <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< using System; using System.Reflection; using System.Threading; class C { public static void Main () { int i = 0; Interlocked.CompareExchange<int> (ref i, 0, 0); } } <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< gmcs compiles this just fine, while csc prints a CS0452: The type 'int' must be a reference type ... ---- Additional Comments From martin@ximian.com 2005-12-07 08:42:48 MST ---- Same happens on any other generic method; working on it. ---- Additional Comments From martin@ximian.com 2005-12-07 12:16:24 MST ---- Fixed in SVN. Unknown operating system unknown. Setting to default OS "Other".