dmd/compiler/test/compilable/test24118.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] );
}
}