[Ironpython-users] IronPython, Daily Digest 6/23/2011

no_reply at codeplex.com no_reply at codeplex.com
Fri Jun 24 15:38:15 CEST 2011


Hi ironpython,

Here's your Daily Digest of new issues for project "IronPython".

In today's digest:ISSUES

1. [New issue] Cannot create PythonType for generic parameter which has interface constraints

----------------------------------------------

ISSUES

1. [New issue] Cannot create PythonType for generic parameter which has interface constraints
http://ironpython.codeplex.com/workitem/30905
User dinov has proposed the issue:

"http://pytools.codeplex.com/workitem/243

    public class GenericType<T> where T : IEnumerable {
        public T ReturnsGenericParam() {
            return default(T);
        }
    }

Import the type and do:

clr.GetPythonType(clr.GetClrType(GenericType).GetMethod('ReturnsGenericParam').ReturnType)

And this throws:

SystemError: Method must be called on a Type for which Type.IsGenericParameter is false."
----------------------------------------------



----------------------------------------------
You are receiving this email because you subscribed to notifications on CodePlex.

To report a bug, request a feature, or add a comment, visit IronPython Issue Tracker. You can unsubscribe or change your issue notification settings on CodePlex.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20110624/327ba89b/attachment.html>


More information about the Ironpython-users mailing list