Bug 319624 (MONO76806) - [GMCS] gmcs ignores T: class constraint on method type parameter
Summary: [GMCS] gmcs ignores T: class constraint on method type parameter
Status: RESOLVED FIXED
Alias: MONO76806
Product: Mono: Compilers
Classification: Mono
Component: C# (show other bugs)
Version: unspecified
Hardware: Other Other
: P3 - Medium : Minor
Target Milestone: ---
Assignee: Martin Baulig
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-24 00:47 UTC by Forgotten User vxPDddArjq
Modified: 2007-09-15 21:24 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Wiest 2007-09-15 19:39:08 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".