main icon indicating copy to clipboard operation
main copied to clipboard

__new__ allows arbitrary type as first argument

Open ironpythonbot opened this issue 11 years ago • 0 comments

The first argument should be the class that the __new__method belongs to. The first call to ** new ** works as expected, but the second one also works even though it should fail

from System.Collections import BitArray
BitArray. ** new ** .Overloads[int](BitArray, 1) # expected to pass
<System.Collections.BitArray object at 0x000000000000002C [System.Collections.BitArray]>
BitArray. ** new ** .Overloads[int](object, 1) # expected to fail
<System.Collections.BitArray object at 0x000000000000002B [System.Collections.BitArray]>

Work Item Details

Original CodePlex Issue: Issue 24858 Status: Active Reason Closed: Unassigned Assigned to: Unassigned Reported on: Oct 9, 2009 at 10:23 PM Reported by: sborde Updated on: Feb 22, 2013 at 2:11 AM Updated by: jdhardy

ironpythonbot avatar Dec 09 '14 17:12 ironpythonbot