http://bugzilla.novell.com/show_bug.cgi?id=529691
Summary: gmcs requires extra type arguments for nested generic
types.
Classification: Mono
Product: Mono: Compilers
Version: SVN
Platform: i586
OS/Version: Windows XP
Status: NEW
Severity: Normal
Priority: P5 - None
Component: C#
AssignedTo: [email protected]
ReportedBy: [email protected]
QAContact: [email protected]
Found By: ---
The following types are simplified version of how Silverlight WCF custom client
proxies constitutes, which are based on ClientBase<TChannel> and
ChannelBase<T>.
There is a nested generic type Bar<V> inside a generic type Foo<T>. Then there
is a derived type of generic Foo with derived type of Bar as its nested type.
//----------------
public class Foo<T>
{
protected class Bar<V>
{
}
}
public interface IBaz
{
}
public class FooImpl : Foo<IBaz>
{
private class BarImpl : Bar<IBaz>
{
}
}
//------------------
gmcs fails to compile it as:
test.cs(14,33): error CS0305: Using the generic type `Foo<T>.Bar<V>' requires
`2' type argument(s)
test.cs(3,25): (Location of the symbol related to previous error)
Compilation failed: 1 error(s), 0 warnings
csc does not result in it.
I know that generic nested types in general requires type arguments for parent
types, but in this "derived and nested" case it does not seem to be required.
--
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.
_______________________________________________
mono-bugs maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs