mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 05:00:16 +03:00

* Fix Issue 23773 - Add a lowering field for AssignExp to store potential lowerings and use it for array length expressions * Add LoweredAssignExp AST node
15 lines
256 B
D
15 lines
256 B
D
// https://issues.dlang.org/show_bug.cgi?id=23773
|
|
|
|
/*
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/fail23773.d(14): Error: assignment cannot be used as a condition, perhaps `==` was meant?
|
|
---
|
|
*/
|
|
|
|
void main()
|
|
{
|
|
int i;
|
|
int[] arr;
|
|
assert(arr.length = i);
|
|
}
|