| 1 |
// https://issues.dlang.org/show_bug.cgi?id=15225 |
| 2 |
|
| 3 |
alias foo = (int x) => x + 1; |
| 4 |
alias foo = (string x) => x ~ x; |
| 5 |
alias foo = (float x) => x - x; |
| 6 |
|
| 7 |
static assert( foo(1) == 2 ); |
| 8 |
static assert( foo("a") == "aa"); |
| 9 |
static assert(foo(2.0f) == 0.0f); |