mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 21:21:48 +03:00
15 lines
280 B
D
15 lines
280 B
D
// https://issues.dlang.org/show_bug.cgi?id=4510
|
|
/*
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/fail4510.d(12): Error: argument type mismatch, `float` to `ref double`
|
|
---
|
|
*/
|
|
|
|
void main()
|
|
{
|
|
float[] arr = [1.0, 2.5, 4.0];
|
|
foreach (ref double elem; arr) {
|
|
//elem /= 2;
|
|
}
|
|
}
|