dmd/compiler/test/fail_compilation/diag20268.d
Dennis a3abf1187e
Fix 23722 - Lambdas are mangled incorrectly when using multiple compi… (#15343)
* Fix 23722 - Lambdas are mangled incorrectly when using multiple compilation units, resulting in incorrect code

* Update test cases
2024-11-27 12:03:16 +01:00

12 lines
326 B
Makefile

// https://issues.dlang.org/show_bug.cgi?id=20268
/*
TEST_OUTPUT:
---
fail_compilation/diag20268.d(12): Error: template `__lambda_L11_C1` is not callable using argument types `!()(int)`
fail_compilation/diag20268.d(11): Candidate is: `__lambda_L11_C1(__T1, __T2)(x, y)`
---
*/
alias f = (x,y) => true;
auto x = f(1);