mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
24 lines
357 B
D
24 lines
357 B
D
/*
|
|
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();
|
|
}
|