[Issue 9688] New: `__traits(compiles, a.b)` fails on UFCS and property
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Mar 10 23:46:37 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9688
Summary: `__traits(compiles, a.b)` fails on UFCS and property
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Keywords: rejects-valid
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: verylonglogin.reg at gmail.com
--- Comment #0 from Denis Shelomovskij <verylonglogin.reg at gmail.com> 2013-03-11 09:46:36 MSK ---
---
@property int f(Object o)
{ return 0; }
void main()
{
Object o;
o.f; // ok
static assert(is(typeof(o.f))); // ok
static assert(__traits(compiles, o.f)); // fails
}
---
--
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