[Issue 379] New: wrong thisptr type in typedef'ed struct

Thomas Kuehne thomas-dloop at kuehne.cn
Fri Sep 29 00:04:14 PDT 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

d-bugmail at puremagic.com schrieb am 2006-09-27:
> http://d.puremagic.com/issues/show_bug.cgi?id=379

> struct Foo {
>         void foo() {
>         }
> }
>
> typedef Foo Bar;
>
>
> void main() {
>         Bar a;
>         a.foo();
> }
>
>> this for foo needs to be type Foo not type Bar

test case:
http://dstress.kuehne.cn/run/t/typedef_07_B.d

Thomas


-----BEGIN PGP SIGNATURE-----

iD8DBQFFHM1ELK5blCcjpWoRAriCAJ4ugxK4pe+lJvgUQfsn5aZMBRb0jQCgrYm+
rqNcMUpIDQS07De5cEywqJs=
=oOxE
-----END PGP SIGNATURE-----



More information about the Digitalmars-d-bugs mailing list