Bug 321139 (MONO78400) - [GMCS] generic type argument is incorrectly ignored
Summary: [GMCS] generic type argument is incorrectly ignored
Status: RESOLVED FIXED
Alias: MONO78400
Product: Mono: Compilers
Classification: Mono
Component: C# (show other bugs)
Version: unspecified
Hardware: Other Other
: P3 - Medium : Normal
Target Milestone: ---
Assignee: Martin Baulig
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-15 10:46 UTC by Petri Latvala
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:58:53 UTC


---- Reported by adrinael@adrinael.net 2006-05-15 03:46:33 MST ----

Here's code:


using System;
using System.Collections;
using System.Collections.Generic;

public class Qux<X,V> : IEnumerable<V>
	where V : IComparable<V>
{
	public IEnumerator<V> GetEnumerator()
	{
		yield break;
	}

        IEnumerator IEnumerable.GetEnumerator()
        {
        	yield break;
        }
}

public class foo<X,V> : Qux<X,V>
	where V : IComparable<V>
{
}


And here's the compile result:


generics.cs(19,25): error CS0305: Using the generic type
`System.IComparable<T>' requires 1 type arguments



Expected Results:

Successful compile

How often does this happen? 

Always


Additional Information:


Happens with mono 1.1.13.7-1.fc5.1 (Fedora Core 5 package) and with svn
mono (trunk) HEAD pulled 2006-05-12 -ish.



---- Additional Comments From atsushi@ximian.com 2006-05-15 04:08:59 MST ----

Also happens in HEAD. csc compiles.



---- Additional Comments From martin@ximian.com 2006-06-13 12:25:18 MST ----

Fixed in SVN.



---- Additional Comments From adrinael@adrinael.net 2006-06-15 07:14:15 MST ----

I still get this error even with the patch.



---- Additional Comments From martin@ximian.com 2006-06-16 13:50:07 MST ----

Fixed in SVN.


Unknown bug field "cf_op_sys_details" encountered while moving bug
   <cf_op_sys_details>Fedora Core 5</cf_op_sys_details>
Unknown operating system unknown. Setting to default OS "Other".