Issue with 2.071: Regression or valid error?

Daniel Kozak via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Apr 8 01:26:11 PDT 2016


On Friday, 8 April 2016 at 06:08:38 UTC, 9il wrote:
> On Thursday, 7 April 2016 at 15:55:16 UTC, Steven Schveighoffer 
> wrote:
>> On 4/6/16 11:10 AM, Andre wrote:
>>> [...]
>>
>> Just FYI, you don't need a semicolon there.
>>
>>>>> [...]
>>
>> Wow, totally agree with you. Compiler shouldn't make you jump 
>> through this hoop:
>>
>> void foo(Cat cat)
>> {
>>    Animal a = cat;
>>    a.create();
>> }
>>
>> Please file a bug report, not sure why this happened.
>>
>> -Steve
>
> Why this is a bug? private methods are not virtual, are they? 
> --Ilya

No they are not virtual, so this is not a bug.



More information about the Digitalmars-d-learn mailing list