Is deprecating a template supposed to work?

aliak something at something.com
Thu Feb 20 22:31:16 UTC 2020


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?


More information about the Digitalmars-d-learn mailing list