blob: 65472cf614ebc9dae7dd95c3caf91dfa6aa8bb1d [file] [log] [blame]
/*
TEST_OUTPUT:
---
fail_compilation/fail39.d(11): Error: function fail39.main.__funcliteral2 cannot access frame of function D main
---
*/
void main()
{
void foo() {}
void function() bar = function void() { foo(); };
}