dmd/compiler/test/runnable/test12197.d
2022-07-09 18:53:07 +02:00

13 lines
166 B
D

// RUNNABLE_PHOBOS_TEST
// import std.math;
void foo(T)(T[] b)
{
b[] = b[] ^^ 4;
}
void main()
{
double[] a = [10];
foo(a);
assert(a[0] == 10000);
}