[Issue 4501] Can't call templated properties as properties from within class

2012-05-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4501


Kenji Hara k.hara...@gmail.com changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED


--- Comment #2 from Kenji Hara k.hara...@gmail.com 2012-05-30 19:08:57 PDT ---
Works in 2.060head.

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


[Issue 4501] Can't call templated properties as properties from within class

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


Stanislav Blinov stanislav.bli...@gmail.com changed:

   What|Removed |Added

 CC||stanislav.bli...@gmail.com
   Platform|Other   |All
 OS/Version|Windows |All


--- Comment #1 from Stanislav Blinov stanislav.bli...@gmail.com 2010-12-02 
16:27:16 PST ---
This seems related, though error manifests outside of class body:

class Bar
{
@property T num(T = int)() const // Note default type
{ 
T result;
//...
return result;
}
}

void main()
{
auto bar = new Bar;
auto n1 = bar.num!int; // Ok
auto n2 = bar.num; // Error: Bar.num(T = int) has no value
auto n3 = bar.num!float; // Ok
}

I don't know if it's worth separate issue report.

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