[Issue 850] we need (*type).property to refer to property if we use typedef
https://issues.dlang.org/show_bug.cgi?id=850 Mathias LANG changed: What|Removed |Added Status|NEW |RESOLVED CC||pro.mathias.l...@gmail.com Resolution|--- |WONTFIX --- Comment #5 from Mathias LANG --- ``` alias JNINativeInterface_* JNIEnv; struct JNINativeInterface_ { int FindClass; } void main(){ JNIEnv env; auto x = env.FindClass; } ``` Compiles just fine. Since we don't have Typedef anymore, closing. --
[Issue 850] we need (*type).property to refer to property if we use typedef
http://d.puremagic.com/issues/show_bug.cgi?id=850 Lukasz Wrzosek changed: What|Removed |Added CC||luk.wrzo...@gmail.com --- Comment #4 from Lukasz Wrzosek 2012-02-15 08:31:12 PST --- Checked dmd(In reply to comment #3) > alias doesn't seem to be any better. > > dmd 2.056 64 bit linux, > > alias JNINativeInterface_* JNIEnv; > > struct JNINativeInterface_ { > int FindClass; > } > void main(){ > JNIEnv* env; > auto x = env.FindClass; > } > > compiled results in > > foo.d(8): Error: no property 'FindClass' for type 'JNINativeInterface_*' This case is wrong. variable env is of type JNINativeInterface_** so compiler rejects invalid code correctly. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 850] we need (*type).property to refer to property if we use typedef
http://d.puremagic.com/issues/show_bug.cgi?id=850 Ellery Newcomer changed: What|Removed |Added CC||ellery-newco...@utulsa.edu --- Comment #3 from Ellery Newcomer 2011-12-08 18:13:43 PST --- alias doesn't seem to be any better. dmd 2.056 64 bit linux, alias JNINativeInterface_* JNIEnv; struct JNINativeInterface_ { int FindClass; } void main(){ JNIEnv* env; auto x = env.FindClass; } compiled results in foo.d(8): Error: no property 'FindClass' for type 'JNINativeInterface_*' -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---