http://d.puremagic.com/issues/show_bug.cgi?id=7958
Summary: Uniform Function Call fails if class defined in unittest body Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nob...@puremagic.com ReportedBy: thelastmamm...@gmail.com --- Comment #0 from thelastmamm...@gmail.com 2012-04-20 23:30:22 PDT --- //this works class A{ int x; } int fun(A a){return a.x;} void main(){A a=new A; auto x=a.fun;} //this doesn't work: unittest{ class A{ int x; } int fun(A a){return a.x;} A a=new A; auto x=a.fun; } -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------