mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 05:00:16 +03:00
17 lines
294 B
D
17 lines
294 B
D
/*
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/diag10984.d(12): Error: `static` function `diag10984.f.n` cannot access variable `x` in frame of function `diag10984.f`
|
|
fail_compilation/diag10984.d(11): `x` declared here
|
|
---
|
|
*/
|
|
|
|
void f()
|
|
{
|
|
int x;
|
|
static void n() { x++; }
|
|
}
|
|
|
|
void main()
|
|
{
|
|
}
|