www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - incorrect deprecated error

reply Carlos Santander <csantander619 gmail.com> writes:
This code:

//-----------------------
void baz() {}
deprecated alias baz foo;
void foo(int i) {}

void main()
{
	foo(4);  // line 7
}
//-----------------------

Produces this:

test4.d:7: alias test4.foo is deprecated

-- 
Carlos Santander Bernal
May 16 2006
parent Thomas Kuehne <thomas-dloop kuehne.cn> writes:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Carlos Santander schrieb am 2006-05-17:
 This code:

 //-----------------------
 void baz() {}
 deprecated alias baz foo;
 void foo(int i) {}

 void main()
 {
 	foo(4);  // line 7
 }
 //-----------------------

 Produces this:

 test4.d:7: alias test4.foo is deprecated

Added to DStress as http://dstress.kuehne.cn/run/d/deprecated_22_A.d http://dstress.kuehne.cn/run/d/deprecated_22_B.d http://dstress.kuehne.cn/nocompile/d/deprecated_22_C.d http://dstress.kuehne.cn/nocompile/d/deprecated_22_D.d Thomas -----BEGIN PGP SIGNATURE----- iD8DBQFEbcVg3w+/yD4P9tIRAiRiAJ0dr+TZcJTO8LljOeLpbh1hYUWuggCfbDMQ i8HvbYeKxyitZoTRvgIZvvM= =h6F3 -----END PGP SIGNATURE-----
May 19 2006