Why are deprecated aliases considered equal for resolution?

Nicholas Wilson iamthewilsonator at hotmail.com
Fri May 11 14:02:22 UTC 2018

module a;

struct foo {}

deprecated alias bar = foo;

module b;
struct bar {};

module c;

import a;
import b;

void baz(bar b) {}

Error: `a.bar` at source/a.d(5,1) conflicts with `b.bar` at 

I would have thought the undeprecated alias would have been used.

More information about the Digitalmars-d-learn mailing list