[Issue 2853] Property overriding problem

2019-09-10 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=2853

RazvanN  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||razvan.nitu1...@gmail.com
 Resolution|--- |INVALID

--- Comment #3 from RazvanN  ---
This bug report is invalid. You have to use alias to pull in the number
overload set to Extension.

class Extension: Base
{
alias number = Base.number; 
override int number(int value)  // override setter
{
return 0; 
}

void method()
{
printNumber(this.number); // calls Base.number
}
}

--


[Issue 2853] Property overriding problem

2010-02-05 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2853


Witold Baryluk bary...@smp.if.uj.edu.pl changed:

   What|Removed |Added

 CC||bary...@smp.if.uj.edu.pl


--- Comment #2 from Witold Baryluk bary...@smp.if.uj.edu.pl 2010-02-05 
06:01:31 PST ---
Actually setter in the base class is not needed to trigger this bug.

Also calling this.number() in method(), so adding call brackets, doesn't solve
problem. So it is not only problem with setter/getter. This can lead to problem
with perfectly valid code with no properties.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---


[Issue 2853] Property overriding problem

2009-04-18 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2853





--- Comment #1 from 2kor...@gmail.com  2009-04-18 19:23 ---
Fake properties must die, all I can say.


--