checker error when a lambda expression is used as a parameter to a generic function that accepts a fn callback #22384
Labels
Bug
This tag is applied to issues which reports bugs.
Generics[T]
Bugs/feature requests, that are related to the V generics.
Unit: Checker
Bugs/feature requests, that are related to the type checker.
Unit: Compiler
Bugs/feature requests, that are related to the V compiler in general.
V doctor:
What did you do?
./v -g -o vdbg cmd/v && ./vdbg generic_fn_called_with_lambda.v
What did you expect to see?
a compiled program, producing
['0. item1', '1. item2', '2. item3']
What did you see instead?
Note: the full version works:
Probably related: #22109 .
Note
You can use the 👍 reaction to increase the issue's priority for developers.
Please note that only the 👍 reaction to the issue itself counts as a vote.
Other reactions and those to comments will not be taken into account.
The text was updated successfully, but these errors were encountered: