[IronPython] Template argument type inference
Curt Hagenlocher
curt at hagenlocher.org
Sat Feb 2 16:50:13 CET 2008
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
curt at hagenlocher.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20080202/b77a0d53/attachment.html>
More information about the Ironpython-users
mailing list