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

* Fix 23722 - Lambdas are mangled incorrectly when using multiple compilation units, resulting in incorrect code * Update test cases
16 lines
438 B
D
16 lines
438 B
D
/*
|
|
EXTRA_FILES: imports/a11850.d
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/ice11850.d(15): Error: incompatible types for `(a) < ([0])`: `uint[]` and `int[]`
|
|
fail_compilation/imports/a11850.d(9): instantiated from here: `FilterResult!(__lambda_L15_C13, uint[][])`
|
|
fail_compilation/ice11850.d(15): instantiated from here: `filter!(uint[][])`
|
|
---
|
|
*/
|
|
|
|
import imports.a11850 : filter;
|
|
|
|
void main()
|
|
{
|
|
filter!(a => a < [0])([[0u]]);
|
|
}
|