[Issue 10103] template mixin with property overloads

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Oct 23 23:42:50 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=10103


Joseph Rushton Wakeling <joseph.wakeling at webdrake.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
                 CC|                            |joseph.wakeling at webdrake.ne
                   |                            |t
         Resolution|FIXED                       |


--- Comment #7 from Joseph Rushton Wakeling <joseph.wakeling at webdrake.net> 2013-10-23 23:42:49 PDT ---
The current fix does not cover all possible cases.  The two recently-attached
examples show cases where, of a getter/setter property pair, a class implements
one of them locally and obtains the other via a mixin.  In both cases errors
result:

    $ rdmd mixproperty.d
    mixproperty.d(30): Error: a.foo is not an lvalue

    $ rdmd mixproperty2.d
    mixproperty2.d(31): Error: function mixproperty2.A.foo (const(int) f) is
not callable using argument types ()

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


More information about the Digitalmars-d-bugs mailing list