dmd/compiler/test/fail_compilation/auto_ref_inout.d
Nick Treleaven 8974bb128d
Fix Bugzilla 24707 - error message has bad parameter attribute order (#16791)
* Fix Bugzilla 24707 - error message has bad attribute order

* Fix tests

* Fix & split error test into 2 lines
2024-08-19 14:29:23 +03:00

12 lines
372 B
D

/*
TEST_OUTPUT:
---
fail_compilation/auto_ref_inout.d(12): Error: template `f` is not callable using argument types `!()(int)`
fail_compilation/auto_ref_inout.d(10): Candidate is: `f(T)(auto ref inout T a, auto ref inout T b)`
---
*/
// https://issues.dlang.org/show_bug.cgi?id=24707
auto ref inout(T) f(T)(auto ref inout T a, auto ref inout T b);
enum e = f(5);