May 17, 2006 incorrect deprecated error | ||||
---|---|---|---|---|
| ||||
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 19, 2006 Re: incorrect deprecated error | ||||
---|---|---|---|---|
| ||||
Posted in reply to Carlos Santander Attachments: | 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 |
Copyright © 1999-2021 by the D Language Foundation