[Mono-bugs] [Bug 559356] New: Implicit generic parameters to nested types are not implicitly set

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Nov 30 17:55:22 EST 2009



           Summary: Implicit generic parameters to nested types are not
                    implicitly set
    Classification: Mono
           Product: Mono: Compilers
           Version: SVN
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: C#
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: Dax at daxxfiles.net
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---

Description of Problem:

Implicit generic parameters of types nested in generic types are not implicitly
set when these types are accessed from within their direct parents.

Steps to reproduce the problem:


abstract class sample
    public abstract TValue Value<TKey, TValue>();

    class nested<T> : sample
        struct holder<TKey, TValue>
            public static TValue Val;

        public override sealed TValue Value<TKey, TValue>()
            return holder<TKey, TValue>.Val;

Actual Results:

error CS0305: Using the generic type
`MainClass.holderJ.actualHolderJ<T>.holder<TKey,TValue>' requires `3' type

Expected Results:

no error

How often does this happen? 

every time

Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.

More information about the mono-bugs mailing list