Bug 320609 (MONO77852) - [GMCS] r58158: incorrect CS0452 - class constraint resolution failure
Summary: [GMCS] r58158: incorrect CS0452 - class constraint resolution failure
Status: RESOLVED FIXED
Alias: MONO77852
Product: Mono: Compilers
Classification: Mono
Component: C# (show other bugs)
Version: 1.1
Hardware: Other Other
: P3 - Medium : Normal
Target Milestone: ---
Assignee: Raja R Harinath
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-20 03:10 UTC by Atsushi Enomoto
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:52:22 UTC


---- Reported by atsushi@ximian.com 2006-03-19 20:10:55 MST ----

The example code below does not comple with gmcs after r58158:

--------
public interface I {}

internal class A<T> : B<T> where T : class {}

public abstract class B<T> : I where T : class {}

Actual Results:

class-constraints.cs(3,23): error CS0452: The type `T' must be a reference type
in order to use it as type parameter `T' in the generic type or method `B<T>'.
class-constraints.cs(3,23): error CS0452: The type `T' must be a reference type
in order to use it as type parameter `T' in the generic type or method `B<T>'.

Expected Results:

no CS0452 error.

How often does this happen? 

consistently.

Additional Information:

I think there used to be similar bug that once Martin had fixed.



---- Additional Comments From rharinath@novell.com 2006-03-20 10:10:09 MST ----

Should be fixed in SVN r58187


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