Thread overview | |||||
---|---|---|---|---|---|
|
February 20, 2020 Is deprecating a template supposed to work? | ||||
---|---|---|---|---|
| ||||
Is this suppose to give a deprecation error message? deprecated("a") alias A(T) = B!T; template B(T) { alias B = T; } void main() { A!int a; // should this cause a message "a" ? } ?? Or am I using it wrong maybe? |
February 20, 2020 Re: Is deprecating a template supposed to work? | ||||
---|---|---|---|---|
| ||||
Posted in reply to aliak | On Thursday, 20 February 2020 at 22:31:16 UTC, aliak wrote: > Is this suppose to give a deprecation error message? > > deprecated("a") > alias A(T) = B!T; > > template B(T) { > alias B = T; > } > > void main() { > A!int a; // should this cause a message "a" ? > } > > ?? > > Or am I using it wrong maybe? It's a bug, see https://issues.dlang.org/show_bug.cgi?id=20190 |
February 21, 2020 Re: Is deprecating a template supposed to work? | ||||
---|---|---|---|---|
| ||||
Posted in reply to MoonlightSentinel | On Thursday, 20 February 2020 at 23:21:23 UTC, MoonlightSentinel wrote:
> On Thursday, 20 February 2020 at 22:31:16 UTC, aliak wrote:
>> Is this suppose to give a deprecation error message?
>>
>> deprecated("a")
>> alias A(T) = B!T;
>>
>> template B(T) {
>> alias B = T;
>> }
>>
>> void main() {
>> A!int a; // should this cause a message "a" ?
>> }
>>
>> ??
>>
>> Or am I using it wrong maybe?
>
> It's a bug, see https://issues.dlang.org/show_bug.cgi?id=20190
Ah, I see. Thanks!
|
Copyright © 1999-2021 by the D Language Foundation