mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
15 lines
196 B
D
15 lines
196 B
D
// https://issues.dlang.org/show_bug.cgi?id=24118
|
|
|
|
void map(alias fun, T)(T[] arr)
|
|
{
|
|
fun(arr);
|
|
}
|
|
|
|
|
|
void foo()
|
|
{
|
|
if( __ctfe )
|
|
{
|
|
["a", "b", "c"].map!( a => " " ~ a[0] );
|
|
}
|
|
}
|