Support for generic types of interfaces


#1

Hi

I have found out that there is a problem if you tried to create a
generic
type of some interface. Here is an example:

require ‘System’
include System
include System::Collections::Generic
List.of(ICloneable).new

Looking at the stack trace and debugging with VS I was able to implement
a
quick patch that is attached.

Regards,
Stefan


#2

RubyModule should rather implement GetUnderlyingSystemType for
interfaces. I have the change almost ready (along with other fixes).

Thanks for the patch anyways!
Tomas

From: removed_email_address@domain.invalid
[mailto:removed_email_address@domain.invalid] On Behalf Of Stefan D.
Sent: Sunday, March 08, 2009 2:53 PM
To: removed_email_address@domain.invalid
Subject: [Ironruby-core] Support for generic types of interfaces

Hi

I have found out that there is a problem if you tried to create a
generic type of some interface. Here is an example:

require ‘System’
include System
include System::Collections::Generic
List.of(ICloneable).new

Looking at the stack trace and debugging with VS I was able to implement
a quick patch that is attached.

Regards,
Stefan