https://issues.dlang.org/show_bug.cgi?id=18646
--- Comment #5 from Iain Buclaw <ibuclaw at gdcproject.org> ---
Extra testcase
---
struct Template(int i) { }
uint f()
{
    Template!(1) x;
    return 0;
}
immutable constant = f();
alias X = Template!constant;
--