On 12/28/21 4:19 PM, rempas wrote:

Here:

```
extern (C) void main() {
   void print_num(int mul)(int num) {
     static if (is(mul == ten)) {
       printf("%d\n", num * 10);
     } else static if (is(mul == three)) {
       printf("%d\n", num * 3);
     } else {
       printf("%d\n", num);
     }
   }

   int multi = 211;
   print_num!3(10);     // Ok, accept this
   print_num!multi(10); // Error, do not accept this
}
```

-Steve

Reply via email to