http://d.puremagic.com/issues/show_bug.cgi?id=10038
Summary: Poor error for undefined variable in template args
using UFCS on UDT
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Peter Alexander <[email protected]> 2013-05-07
09:48:17 PDT ---
--------------------------------
struct S {}
int foo(alias A)(S s) { return 1; }
int baderror = S().foo!(X);
--------------------------------
Error is:
bug.d(3): Error: no property 'foo' for type 'S'
Ideally would be:
bug.d(3): Error: undefined identifier X.
This can be quite problematic in large UFCS chain expressions, like what you
get when using ranges. A small typo can take quite a while to track down with
the current diagnostics.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------