[Mono-dev] corcompare patch for printing generic method type arguments

Atsushi Eno atsushi at ximian.com
Tue Oct 25 14:09:14 EDT 2005


Hi,

Martin Baulig wrote:
> On Tue, 2005-10-25 at 06:05 +0900, Atsushi Eno wrote:
>>>> Then it prints
>>>>
>>>> 	Foo[T(IFoo), U(IBar)]
>>>>  
>>>>
>>> I prefer the syntax where will be more obvious that it is about generic
>>> possibly use same syntax as csc/gmcs use for error reporting.
>>> Something like `Foo<T(IFoo), U (IBar)>'
> 
> Hi,
> 
> let's use the correct syntax here rather than inventing something new.
> Marek already came very close, but the correct syntax is
> 
> 	Foo<(IFoo) T, class U>
> 
> That's what ildasm uses.

Just wondering, what should I print constraints for example below?

	where T : class, IFoo

This change should be easy. I'll also include GenericTypeAttributes
differences next time.

Atsushi Eno



More information about the Mono-devel-list mailing list