[dmd-beta] D2 2.058 beta 3
walter at digitalmars.com
Sun Feb 12 11:21:27 PST 2012
On 2/12/2012 5:59 AM, Mike Wey wrote:
> On 02/12/2012 02:50 PM, Mike Wey wrote:
>> On 02/12/2012 11:51 AM, Walter Bright wrote:
>>> dmd-beta mailing list
>>> dmd-beta at puremagic.com
>> The attached file compiles with dmd 2.057 but fails with the beta.
> Reduced the test case a little more.
What's happening is Object.opEquals(Object) needs to be called to do the
comparison, meaning that Base must be converted to an Object. But the example
only allows converting to a Base, hence it cannot call Object.opEquals(Object),
hence the error message.
I think the code example is invalid.
More information about the dmd-beta