struct Foo {
void foo() {
}
}
typedef Foo Bar;
void main() {
Bar a;
a.foo();
}
> this for foo needs to be type Foo not type Bar
Comment #1 by thomas-dloop — 2006-09-29T02:05:36Z
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
[email protected] 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-----