http://d.puremagic.com/issues/show_bug.cgi?id=8104
Summary: UFCS on forward reference won't compile Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nob...@puremagic.com ReportedBy: j...@neggie.net --- Comment #0 from John Belmonte <j...@neggie.net> 2012-05-15 17:55:50 PDT --- It should be possible to use UFCS on an opaque struct. ---- struct State; void foo(State*) {}; void main() { State* s; foo(s); // ok s.foo(); // compile error } ---- Error: struct State is forward referenced when looking for 'foo' Error: struct State is forward referenced when looking for 'opDot' Error: struct State is forward referenced when looking for 'opDispatch' -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------