http://d.puremagic.com/issues/show_bug.cgi?id=11366
Summary: typeid on field access gives CT error: need 'this' 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 2013-10-27 02:04:50 PDT --- class A{} struct B{ A a; } void main(){ B b; b.a=new A; auto a=b.a; auto c=typeid(a); auto c2=typeid(b.a);//CT error: need 'this' for 'a' of type main.A } -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------