[Issue 7958] Uniform Function Call fails if class defined inside a function

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Apr 25 00:33:04 PDT 2012


http://d.puremagic.com/issues/show_bug.cgi?id=7958



--- Comment #1 from thelastmammoth at gmail.com 2012-04-25 00:34:07 PDT ---
EDIT:
more importantly, it also fails if fun() is defined inside a function:

//this doesn't work:
class A{ int x; }

void myfunction(){
int fun(A a){return a.x;}
A a=new A; 
auto x=a.fun; //fails
}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list