Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
gcc
/
testsuite
/
gdc.test
/
compilable
/
test15225.d
blob: d60fba1e05b323dd2daaa2db7ac39b46be87347e [
file
] [
log
] [
blame
]
// https://issues.dlang.org/show_bug.cgi?id=15225
alias
foo
=
(
int
x
)
=>
x
+
1
;
alias
foo
=
(
string
x
)
=>
x
~
x
;
alias
foo
=
(
float
x
)
=>
x
-
x
;
static
assert
(
foo
(
1
)
==
2
);
static
assert
(
foo
(
"a"
)
==
"aa"
);
static
assert
(
foo
(
2.0f
)
==
0.0f
);