blob: a95bda0a68d36b034f7b977fef652d63f173531a [file] [log] [blame]
/*
TEST_OUTPUT:
---
fail_compilation/nestedtempl3.d(23): Error: cannot access frame pointer of `nestedtempl3.test.S!(i).S`
---
*/
void test()
{
int i;
auto f0()
{
int j = 10;
struct S(alias a)
{
auto get() { return j; }
}
return S!i();
}
alias S = typeof(f0());
auto s = S();
}