mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00

* Fix 23722 - Lambdas are mangled incorrectly when using multiple compilation units, resulting in incorrect code * Update test cases
12 lines
326 B
Makefile
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);
|