__new__ allows arbitrary type as first argument
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