Bug 317473 (MONO73753) - [GMCS]: Nested class in constraint
Summary: [GMCS]: Nested class in constraint
Status: RESOLVED FIXED
Alias: MONO73753
Product: Mono: Compilers
Classification: Mono
Component: C# (show other bugs)
Version: 1.1
Hardware: Other Other
: P3 - Medium : Normal
Target Milestone: ---
Assignee: Martin Baulig
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-16 10:32 UTC by Krzysztof Ostrowski
Modified: 2007-09-15 21:24 UTC (History)
1 user (show)

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:10:53 UTC


---- Reported by krzys@cs.cornell.edu 2005-03-16 03:32:22 MST ----

No code of the following type, including subclass of a generic in the 
constrain, will compile on the MONO compiler even though it's a valid CLR 
code and will compile without problems with the Microsoft compiler.

public class Moo<C> where C : Moo<C>.Foo
{
  public class Foo
  {
  }
}

Mono compiler response: **ERROR**: file class.c: line 1912 ...



---- Additional Comments From martin@ximian.com 2005-05-06 12:58:22 MST ----

Setting Severity to one week - this is very complicated to fix and may
require some larger changes.



---- Additional Comments From martin@ximian.com 2005-05-10 12:33:12 MST ----

Fixed in SVN; added gen-158.cs.


Unknown operating system Windows XP (Cygwin). Setting to default OS "Other".