mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
38 lines
424 B
D
38 lines
424 B
D
/*
|
|
https://issues.dlang.org/show_bug.cgi?id=10619
|
|
|
|
PERMUTE_ARGS:
|
|
RUN_OUTPUT:
|
|
---
|
|
1
|
|
2
|
|
3
|
|
4
|
|
---
|
|
*/
|
|
|
|
void main()
|
|
{
|
|
{
|
|
int x = 1;
|
|
print!x();
|
|
}
|
|
{
|
|
int x = 2;
|
|
print!x();
|
|
}
|
|
{
|
|
static int y = 3;
|
|
print!y();
|
|
}
|
|
{
|
|
static int y = 4;
|
|
print!y();
|
|
}
|
|
}
|
|
|
|
void print(alias symbol)()
|
|
{
|
|
import core.stdc.stdio : printf;
|
|
printf("%d\n", symbol);
|
|
}
|