[Issue 465] New: errors when trying to use static templated methods

Thomas Kuehne thomas-dloop at kuehne.cn
Thu Nov 23 02:54:24 PST 2006


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

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

> struct Foo {
>         static void func(T)(T a) {
>         }
> }
>
> void main() {
>         Foo.init.func(1);               // ok
>         Foo.init.func!(int)(1); // template func!(int) is not a member of Foo
>         Foo.func(1);                    // type Foo is not an expression
>         Foo.func!(int)(1);              // template func!(int) is not a member
> of Foo
> }

Added to DStress as
http://dstress.kuehne.cn/run/t/template_45_A.d
http://dstress.kuehne.cn/run/t/template_45_B.d
http://dstress.kuehne.cn/run/t/template_45_C.d
http://dstress.kuehne.cn/run/t/template_45_D.d
http://dstress.kuehne.cn/run/t/template_45_E.d
http://dstress.kuehne.cn/run/t/template_45_F.d

Thomas


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

iD8DBQFFZXxcLK5blCcjpWoRAkVXAJ9sY26kTHxnXa2p+alxYKiFmZ2BNgCeKYo2
p9/ox/ewKYTz1NfAbZnkrVQ=
=D1i4
-----END PGP SIGNATURE-----



More information about the Digitalmars-d-bugs mailing list