Bugzilla – Bug 324703
[GMCS] Base class constraint for struct not emitted as generic parameter constraint
Last modified: 2008-09-19 15:18:45 UTC
---- Reported by gert.driesen@pandora.be 2007-07-07 12:05:35 MST ---- Where a "struct" base class contraint is specified for a type parameter, then gmcs not emit this as a generic parameter constraint as well like MS does. This leads to bogus warnings in the Class Status pages. To reproduce, compile and run the attached code. Expected result: struct (System.ValueType, System.IDisposable) T class (System.IDisposable) T This is the result when compiled using csc, and executed on MS or Mono. Actual result: struct (System.IDisposable) T class (System.IDisposable) T This is the result when compiled using gmcs, and executed on MS or Mono. ---- Additional Comments From gert.driesen@pandora.be 2007-07-07 12:06:11 MST ---- Created an attachment (id=172252) C# source code Imported an attachment (id=172252)
*** This bug has been marked as a duplicate of bug 416110 ***