digitalmars.D.bugs - [Issue 10957] New: Bad diagnostic: compiler attempts to do UFCS on a non-function
- d-bugmail puremagic.com (34/34) Sep 03 2013 http://d.puremagic.com/issues/show_bug.cgi?id=10957
http://d.puremagic.com/issues/show_bug.cgi?id=10957 Summary: Bad diagnostic: compiler attempts to do UFCS on a non-function Product: D Version: D2 Platform: All OS/Version: All Status: NEW Keywords: diagnostic Severity: normal Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: andrej.mitrovich gmail.com 13:37:01 PDT --- ----- enum string value = "foo"; struct A { void test(A a) { auto x = a.value; } } void main() { } ----- $ dmd test.d Error: function expected before (), not "foo" of type string It looks like the compiler attempted to do UFCS on a non-function. The above message is reproduced with: auto x = value(a); -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Sep 03 2013