Bug 317194 (MONO72635) - [GMCS]: problem with type resolving when generic multi-level inheritance
Summary: [GMCS]: problem with type resolving when generic multi-level inheritance
Status: RESOLVED FIXED
Alias: MONO72635
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-02-16 10:49 UTC by Forgotten User NWmiVNctto
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:07:24 UTC


---- Reported by tsureshkumar@novell.com 2005-02-16 03:49:47 MST ----

Description of Problem:
gmcs seems not recognizing types like z<k,v> in place of t as in case a <t>
 (i.e. a <z<k,v>>. x()) in specific scenario as below. 

Steps to reproduce the problem:
compile this snippet as gmcs -t:library test.cs
// <snip>
interface a <t> { void x (); }

interface b <t> : a <t> {}

class kv <k,v> {} // type t

interface c <k,v>: b <kv<k,v>>,  // b <t>
                   a <kv<k,v>>    // a <t>
{}

class m <k,v> : c <k,v>,
                b <kv<k,v>> // b <t>
{
        void a <kv <k,v>>.x () {} // a<t>.x ()
}
// </snip>

Actual Results:
error CS0535: 'm`2' does not implement interface member 'a`1.x()'

Expected Results:
Compilation succeeded.

How often does this happen? 
always

Additional Information:
this works with csc. my gmcs version 1.1.3.0 built from svn head.

suresh.



---- Additional Comments From martin@ximian.com 2005-04-30 04:02:51 MST ----

Fixed in SVN.


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