[Issue 850] we need (*type).property to refer to property if we use typedef
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Feb 15 08:31:15 PST 2012
http://d.puremagic.com/issues/show_bug.cgi?id=850
Lukasz Wrzosek <luk.wrzosek at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |luk.wrzosek at gmail.com
--- Comment #4 from Lukasz Wrzosek <luk.wrzosek at gmail.com> 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: -------
More information about the Digitalmars-d-bugs
mailing list