Forum: IronRuby [patch] Fix for RubyModule.LoadNestedTypes

Posted by Jb Evain (Guest)
on 2010-08-17 20:12
Attachment: LoadNestedTypes.patch (1,4 KB)
(Received via mailing list)
Hey,

In the ClrGenerics3 scenario:

        public class ClassWithNestedGenericTypes1 {
            public class D {
            }

            public class C {
                public int Id { get { return 0; } }
            }

            public class C<T> {
                public int Id { get { return 1; } }
            }
        }

IronRuby currently assumes that it will find C before C`1 when
creating the different type groups. The test fails if you simply
invert the two C declarations:

        public class ClassWithNestedGenericTypes1 {
            public class D {
            }

            public class C<T> {
                public int Id { get { return 1; } }
            }

            public class C {
                public int Id { get { return 0; } }
            }
        }

Attached is a patch which fixes the updated test pass.
Posted by Tomas Matousek (Guest)
on 2010-08-17 20:41
(Received via mailing list)
Thanks for the patch.

Tomas
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.