| 1 |
/* |
| 2 |
TEST_OUTPUT: |
| 3 |
--- |
| 4 |
fail_compilation/fail11748.d(12): Error: expression `my_function(0)` is `void` and has no value |
| 5 |
--- |
| 6 |
*/ |
| 7 |
|
| 8 |
void main() |
| 9 |
{ |
| 10 |
enum my_template(alias T) = T.stringof; |
| 11 |
void my_function(int i) { } |
| 12 |
my_template!(my_function(0)); |
| 13 |
} |