D-Programming-Language/phobos — pull request #2776 by IgorStepanov (2014-11-30 20:48:51+00:00)
Title: allow casting Typedef to another Typedef

Now when I tries to cast from `Typedef!(Foo)` to `Typedef!(const(Foo))` I get a `e2ir` error.
Moreover, when I have a `alias TD = Typedef(Foo)`, I can't cast `const(TD)` to `TD`.
This PR fixes this issue.