Bug 323583 (MONO80898) - [GMCS] compilation failure with internal fields in generic classes
Summary: [GMCS] compilation failure with internal fields in generic classes
Status: RESOLVED FIXED
Alias: MONO80898
Product: Mono: Compilers
Classification: Mono
Component: C# (show other bugs)
Version: unspecified
Hardware: Other Other
: P3 - Medium : Enhancement
Target Milestone: ---
Assignee: Mono Bugs
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-19 18:46 UTC by Miguel de Icaza
Modified: 2007-11-05 12:53 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 20:28:33 UTC


---- Reported by miguel@ximian.com 2007-02-19 11:46:38 MST ----

The following program fails to compile with gmcs, but it should:

using System;

    public class Bar<U> where U : EventArgs
    {
        internal void OnWorldDestroyed ()
        {
        }
    }

    public class Baz<U> where U : Bar<EventArgs>
    {
        public void DestroyWorld (U bar)
        {
            bar.OnWorldDestroyed ();
        }
    }

    public class Bling
    {
        public static void Main ()
        {
        }
    }


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

Comment 1 Marek Safar 2007-11-05 12:53:20 UTC
The issue is already fixed in SVN HEAD.