Bug 324703 (MONO82029) - [GMCS] Base class constraint for struct not emitted as generic parameter constraint
Summary: [GMCS] Base class constraint for struct not emitted as generic parameter cons...
Status: RESOLVED DUPLICATE of bug 416110
Alias: MONO82029
Product: Mono: Compilers
Classification: Mono
Component: C# (show other bugs)
Version: 1.2
Hardware: Other All
: P3 - Medium : Normal
Target Milestone: ---
Assignee: Mono Bugs
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-07 19:05 UTC by Gert Driesen
Modified: 2008-09-19 15:18 UTC (History)
0 users

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


Attachments
C# source code (1.47 KB, text/plain)
2007-07-07 19:06 UTC, Thomas Wiest
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Wiest 2007-09-15 20:43:19 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)
Comment 2 Marek Safar 2008-09-19 15:18:45 UTC

*** This bug has been marked as a duplicate of bug 416110 ***