Bug 316241 (MONO68326) - [GMCS] Generic constraint semantics is different than csc
Summary: [GMCS] Generic constraint semantics is different than csc
Status: RESOLVED FIXED
Alias: MONO68326
Product: Mono: Compilers
Classification: Mono
Component: C# (show other bugs)
Version: unspecified
Hardware: Other Other
: P3 - Medium : Normal
Target Milestone: ---
Assignee: Martin Baulig
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-14 16:24 UTC by Rüdiger Klaehn
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 18:56:18 UTC


---- Reported by rudi@lambda-computing.com 2004-10-14 09:24:57 MST ----

In the C# whidbey beta, structs automatically satisfy the new() generic 
constraint even if they do not have an empty constructor. This makes 
sense since structs always have an empty constructor automatically 
generated that sets all fields to its default value. 
 
In mono this is not the case.



---- Additional Comments From martin@ximian.com 2004-11-15 02:20:31 MST ----

Easy.


Unknown operating system unknown. Setting to default OS "Other".