A bug on the error message would be great.  We haven't talked about inferring 
template arguments in a long time but it certainly does seem like it could be 
possible in some cases in the future.  If you want to file a feature request 
for it that'd be great too.

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Curt Hagenlocher
Sent: Saturday, February 02, 2008 7:50 AM
To: Discussion of IronPython
Subject: [IronPython] Template argument type inference

Is it expected that the DLR and/or IronPython will eventually try to infer 
template arguments when calling a generically-defined functions?

PS F:\IPCE-r7\ipy2> .\ipy.exe
IronPython 2.0 Alpha (2.0.0.800) on .NET 2.0.50727.1433
Copyright (c) Microsoft Corporation. All rights reserved.
>>> import clr
>>> clr.AddReferenceByPartialName('xunit')
>>> from Xunit import Assert
>>> Assert.Equal(1, 1)
Traceback (most recent call last):
  File , line unknown, in ##137
TypeError: Equal() takes at least 2147483647 arguments (2 given)
>>> Assert.Equal[type(1)](1, 1)
>>>

Should I file a CodePlex issue for that rather unintuitive error message?

--
Curt Hagenlocher
[EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]>
_______________________________________________
Users mailing list
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to